mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-25 06:35:40 +00:00
fixed eventlist bug
This commit is contained in:
parent
9a7ce75c03
commit
f63c614d6a
1 changed files with 1 additions and 1 deletions
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue