UpdateFieldObjectsForCameraUpdate

This commit is contained in:
scnorton
2017-09-10 15:56:03 -04:00
parent d8e2238086
commit 5a5ea8c740
2 changed files with 7 additions and 24 deletions

View File

@@ -1329,3 +1329,10 @@ static bool8 FieldObjectDoesZCoordMatch(struct MapObject *mapObject, u8 z)
}
return TRUE;
}
void UpdateFieldObjectsForCameraUpdate(s16 x, s16 y)
{
UpdateFieldObjectCoordsForCameraUpdate();
SpawnFieldObjectsInView(x, y);
RemoveFieldObjectsOutsideView();
}