UpdateFieldObjectsForCameraUpdate

This commit is contained in:
scnorton committed 2017-09-10 15:56:03 -04:00
1 parent d8e2238086
commit 5a5ea8c740
2 files changed
+7 -24

No files matched your search

+7
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();
}