Merge branch 'romhack' into lighting
This commit is contained in:
commit
87608392fc
1 changed files with 3 additions and 1 deletions
|
@ -2073,7 +2073,9 @@ void RemoveObjectEventsOutsideView(void)
|
|||
{
|
||||
struct ObjectEvent *objectEvent = &gObjectEvents[i];
|
||||
|
||||
if (objectEvent->active && !objectEvent->isPlayer)
|
||||
// Followers should not go OOB, or their sprites may be freed early during a cross-map scripting event,
|
||||
// such as Wally's Ralts catch sequence
|
||||
if (objectEvent->active && !objectEvent->isPlayer && objectEvent->localId != OBJ_EVENT_ID_FOLLOWER)
|
||||
RemoveObjectEventIfOutsideView(objectEvent);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue