1
0
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:
Michał Janiszewski
2016-07-18 00:23:33 +02:00
parent bc769ea248
commit 010422c7da
2 changed files with 8 additions and 2 deletions

View File

@@ -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++)
{

View File

@@ -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++)
{