1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Refactor access to g_sprite_list

Hide g_sprite_list behind accessor function with a check. `assert` is
temporarily disabled, as it breaks nearly every park.
This commit is contained in:
Michał Janiszewski
2016-07-17 22:14:44 +02:00
parent dd25cdc4f4
commit 9f57c82653
30 changed files with 101 additions and 96 deletions

View File

@@ -169,7 +169,7 @@ void S6Importer::Import()
memcpy(gMapElements, _s6.map_elements, sizeof(_s6.map_elements));
RCT2_GLOBAL(0x0010E63B8, uint32) = _s6.dword_010E63B8;
memcpy(g_sprite_list, _s6.sprites, sizeof(_s6.sprites));
memcpy(get_sprite(0), _s6.sprites, sizeof(_s6.sprites));
for (int i = 0; i < NUM_SPRITE_LISTS; i++)
{