Fix #9920: Ghost pieces break maps on multiplayer for the client (#9928)

This commit is contained in:
Ted John 2019-08-23 20:05:00 +01:00 committed by Michael Steenbeek
parent 4cf1d1eb69
commit d5a1b4fc8f
2 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,7 @@
// This string specifies which version of network stream current build uses.
// It is used for making sure only compatible builds get connected, even within
// single OpenRCT2 version.
#define NETWORK_STREAM_VERSION "7"
#define NETWORK_STREAM_VERSION "8"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
static Peep* _pickup_peep = nullptr;
@ -2745,6 +2745,7 @@ bool Network::LoadMap(IStream* stream)
bool Network::SaveMap(IStream* stream, const std::vector<const ObjectRepositoryItem*>& objects) const
{
bool result = false;
map_reorganise_elements();
viewport_set_saved_view();
try
{

View File

@ -90,6 +90,7 @@ static bool LoadMap(IStream* stream)
static bool SaveMap(IStream* stream, const std::vector<const ObjectRepositoryItem*>& objects)
{
bool result = false;
map_reorganise_elements();
viewport_set_saved_view();
try
{