mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-26 19:14:15 +01:00
*cough*
This commit is contained in:
parent
f63c614d6a
commit
26502ee30a
@ -175,7 +175,7 @@ CEventList::FindClosestEvent(eEventType type, CVector posn, int32 *event)
|
|||||||
float mindist = 60.0f;
|
float mindist = 60.0f;
|
||||||
|
|
||||||
for(i = 0; i < NUMEVENTS; i++){
|
for(i = 0; i < NUMEVENTS; i++){
|
||||||
if(gaEvent[i].type == type)
|
if(gaEvent[i].type != type)
|
||||||
continue;
|
continue;
|
||||||
dist = (posn - gaEvent[i].posn).Magnitude();
|
dist = (posn - gaEvent[i].posn).Magnitude();
|
||||||
if(dist < mindist){
|
if(dist < mindist){
|
||||||
|
Loading…
Reference in New Issue
Block a user