summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-19 10:51:42 +0200
committeraap <aap@papnet.eu>2019-07-19 10:51:42 +0200
commit26502ee30a6368686aad0406759f6770d24f31f5 (patch)
tree24afd5cff66e60003602fa19b13ae3e9eb6d63dc
parentfixed eventlist bug (diff)
downloadre3-26502ee30a6368686aad0406759f6770d24f31f5.tar
re3-26502ee30a6368686aad0406759f6770d24f31f5.tar.gz
re3-26502ee30a6368686aad0406759f6770d24f31f5.tar.bz2
re3-26502ee30a6368686aad0406759f6770d24f31f5.tar.lz
re3-26502ee30a6368686aad0406759f6770d24f31f5.tar.xz
re3-26502ee30a6368686aad0406759f6770d24f31f5.tar.zst
re3-26502ee30a6368686aad0406759f6770d24f31f5.zip
Diffstat (limited to '')
-rw-r--r--src/core/EventList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/EventList.cpp b/src/core/EventList.cpp
index a03d7a42..a833cc8e 100644
--- a/src/core/EventList.cpp
+++ b/src/core/EventList.cpp
@@ -175,7 +175,7 @@ CEventList::FindClosestEvent(eEventType type, CVector posn, int32 *event)
float mindist = 60.0f;
for(i = 0; i < NUMEVENTS; i++){
- if(gaEvent[i].type == type)
+ if(gaEvent[i].type != type)
continue;
dist = (posn - gaEvent[i].posn).Magnitude();
if(dist < mindist){