1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00

Reset sprite quadrant placements as part of sprite reset command

This addresses some sources of desyncs in multiplayer.
This commit is contained in:
Yaroslav Tretyakov
2016-07-25 18:36:58 +02:00
committed by Michał Janiszewski
parent 63eb861cbd
commit dd4e4caeaa
5 changed files with 39 additions and 14 deletions

View File

@@ -366,15 +366,12 @@ void S6Importer::Import()
throw ObjectLoadException();
}
map_update_tile_pointers();
reset_all_sprite_quadrant_placements();
reset_sprite_spatial_index();
if (network_get_mode() == NETWORK_MODE_CLIENT)
{
reset_sprite_spatial_index();
game_do_command(0, GAME_COMMAND_FLAG_APPLY, 0, 0, GAME_COMMAND_RESET_SPRITES, 0, 0);
}
else
{
reset_sprite_spatial_index();
}
game_convert_strings_to_utf8();
if (FixIssues)
{