summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-19 10:09:08 +0200
committeraap <aap@papnet.eu>2019-07-19 10:09:08 +0200
commitf63c614d6aace99bc2d63ffa187f96d215f4369b (patch)
tree069e4382237cd97fbdb16e38de37251c43316b29
parentCAutomobile damage (diff)
downloadre3-f63c614d6aace99bc2d63ffa187f96d215f4369b.tar
re3-f63c614d6aace99bc2d63ffa187f96d215f4369b.tar.gz
re3-f63c614d6aace99bc2d63ffa187f96d215f4369b.tar.bz2
re3-f63c614d6aace99bc2d63ffa187f96d215f4369b.tar.lz
re3-f63c614d6aace99bc2d63ffa187f96d215f4369b.tar.xz
re3-f63c614d6aace99bc2d63ffa187f96d215f4369b.tar.zst
re3-f63c614d6aace99bc2d63ffa187f96d215f4369b.zip
-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 15ad49dd..a03d7a42 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 == EVENT_NULL)
+ if(gaEvent[i].type == type)
continue;
dist = (posn - gaEvent[i].posn).Magnitude();
if(dist < mindist){