mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 14:24:33 +01:00
Load and save sprites to S6 explicitly
This commit is contained in:
@@ -251,7 +251,10 @@ void S6Exporter::Export()
|
||||
memcpy(_s6.map_elements, gMapElements, sizeof(_s6.map_elements));
|
||||
|
||||
_s6.dword_010E63B8 = RCT2_GLOBAL(0x0010E63B8, uint32);
|
||||
memcpy(_s6.sprites, get_sprite(0), sizeof(_s6.sprites));
|
||||
for (int i = 0; i < MAX_SPRITES; i++)
|
||||
{
|
||||
memcpy(&_s6.sprites[i], get_sprite(i), sizeof(rct_sprite));
|
||||
}
|
||||
|
||||
for (int i = 0; i < NUM_SPRITE_LISTS; i++)
|
||||
{
|
||||
|
||||
@@ -169,7 +169,10 @@ void S6Importer::Import()
|
||||
memcpy(gMapElements, _s6.map_elements, sizeof(_s6.map_elements));
|
||||
|
||||
RCT2_GLOBAL(0x0010E63B8, uint32) = _s6.dword_010E63B8;
|
||||
memcpy(get_sprite(0), _s6.sprites, sizeof(_s6.sprites));
|
||||
for (int i = 0; i < MAX_SPRITES; i++)
|
||||
{
|
||||
memcpy(get_sprite(i), &_s6.sprites[i], sizeof(rct_sprite));
|
||||
}
|
||||
|
||||
for (int i = 0; i < NUM_SPRITE_LISTS; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user