mirror of https://github.com/OpenRCT2/OpenRCT2.git
fix #3811: Multiplayer Crash on join
Game was probably being updated with title sequence sprite spatial index.
This commit is contained in:
parent
a79e793e67
commit
a9bf0cdd4e
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
#include "../core/Exception.hpp"
|
#include "../core/Exception.hpp"
|
||||||
#include "../core/IStream.hpp"
|
#include "../core/IStream.hpp"
|
||||||
|
#include "../network/network.h"
|
||||||
#include "S6Importer.h"
|
#include "S6Importer.h"
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
|
@ -378,7 +379,15 @@ void S6Importer::Import()
|
||||||
}
|
}
|
||||||
reset_loaded_objects();
|
reset_loaded_objects();
|
||||||
map_update_tile_pointers();
|
map_update_tile_pointers();
|
||||||
|
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);
|
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();
|
game_convert_strings_to_utf8();
|
||||||
if (FixIssues)
|
if (FixIssues)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue