From 82fd212834ce7613d1bd6990a439b9a9020c8f32 Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 11 Jun 2019 05:10:05 +0200 Subject: [PATCH 1/2] Fix #8859: Network gCheatsEnableAllDrawableTrackPieces on initial join --- src/openrct2/network/Network.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openrct2/network/Network.cpp b/src/openrct2/network/Network.cpp index 90ed7a0a8a..c264c5573f 100644 --- a/src/openrct2/network/Network.cpp +++ b/src/openrct2/network/Network.cpp @@ -2918,6 +2918,7 @@ bool Network::LoadMap(IStream* stream) gGamePaused = stream->ReadValue(); _guestGenerationProbability = stream->ReadValue(); _suggestedGuestMaximum = stream->ReadValue(); + gCheatsEnableAllDrawableTrackPieces = stream->ReadValue() != 0; gCheatsSandboxMode = stream->ReadValue() != 0; gCheatsDisableClearanceChecks = stream->ReadValue() != 0; gCheatsDisableSupportLimits = stream->ReadValue() != 0; @@ -2965,6 +2966,7 @@ bool Network::SaveMap(IStream* stream, const std::vectorWriteValue(gGamePaused); stream->WriteValue(_guestGenerationProbability); stream->WriteValue(_suggestedGuestMaximum); + stream->WriteValue(gCheatsEnableAllDrawableTrackPieces); stream->WriteValue(gCheatsSandboxMode); stream->WriteValue(gCheatsDisableClearanceChecks); stream->WriteValue(gCheatsDisableSupportLimits); From 92129f01d04068b1dfa5fca4df83fa9180b5d6f0 Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 11 Jun 2019 05:10:27 +0200 Subject: [PATCH 2/2] Bump up network version --- src/openrct2/network/Network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/network/Network.cpp b/src/openrct2/network/Network.cpp index c264c5573f..190a95f02a 100644 --- a/src/openrct2/network/Network.cpp +++ b/src/openrct2/network/Network.cpp @@ -33,7 +33,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 "38" +#define NETWORK_STREAM_VERSION "39" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION static Peep* _pickup_peep = nullptr;