1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 07:43:01 +01:00

Move SPRITE_INDEX_NULL, MAX_SPRITES to their new homes

This commit is contained in:
Michał Janiszewski
2021-02-24 23:34:34 +01:00
parent 67b61478cf
commit ac6e4fc0d6
30 changed files with 45 additions and 43 deletions

View File

@@ -2141,7 +2141,7 @@ void window_init_all()
void window_follow_sprite(rct_window* w, size_t spriteIndex)
{
if (spriteIndex < MAX_SPRITES || spriteIndex == SPRITE_INDEX_NULL)
if (spriteIndex < MAX_ENTITIES || spriteIndex == SPRITE_INDEX_NULL)
{
w->viewport_smart_follow_sprite = static_cast<uint16_t>(spriteIndex);
}