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:
committed by
Michał Janiszewski
parent
63eb861cbd
commit
dd4e4caeaa
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user