Fixed bug with checkobjectat
This commit is contained in:
parent
67f8a61eef
commit
fed7fc4f0a
1 changed files with 5 additions and 4 deletions
|
@ -4301,15 +4301,16 @@ bool32 CheckObjectAtXY(void)
|
||||||
for (i = 0; i < OBJECT_EVENTS_COUNT; i++)
|
for (i = 0; i < OBJECT_EVENTS_COUNT; i++)
|
||||||
{
|
{
|
||||||
if (!gObjectEvents[i].active)
|
if (!gObjectEvents[i].active)
|
||||||
return FALSE;
|
continue;
|
||||||
|
|
||||||
if (gObjectEvents[i].currentCoords.x != x)
|
if (gObjectEvents[i].currentCoords.x != x)
|
||||||
return FALSE;
|
continue;
|
||||||
|
|
||||||
if (gObjectEvents[i].currentCoords.y != y)
|
if (gObjectEvents[i].currentCoords.y != y)
|
||||||
return FALSE;
|
continue;
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool32 Script_GetSetPokedexFlag(void)
|
bool32 Script_GetSetPokedexFlag(void)
|
||||||
|
|
Loading…
Reference in a new issue