From 35f3d9f4c9f7058e8c44fada166c48ffebeaf819 Mon Sep 17 00:00:00 2001 From: Hielke Morsink Date: Fri, 9 Mar 2018 16:39:04 +0100 Subject: [PATCH] Fix #7251: "Own all land" cheat does not work `x` was not set back to `min` in the second for loop, causing all second iterations to immediately stop. --- src/openrct2/Cheats.cpp | 2 +- src/openrct2/network/Network.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/Cheats.cpp b/src/openrct2/Cheats.cpp index f6078f05f3..d5590b509d 100644 --- a/src/openrct2/Cheats.cpp +++ b/src/openrct2/Cheats.cpp @@ -448,7 +448,7 @@ static void cheat_own_all_land() const sint32 max = gMapSizeUnits - 32; for (CoordsXY coords = {min, min}; coords.y <= max; coords.y += 32) { - for (; coords.x <= max; coords.x += 32) { + for (coords.x = min; coords.x <= max; coords.x += 32) { rct_tile_element * surfaceElement = map_get_surface_element_at(coords); // Ignore already owned tiles. diff --git a/src/openrct2/network/Network.cpp b/src/openrct2/network/Network.cpp index 15713d9f5f..bd316f0722 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 rct_peep* _pickup_peep = nullptr;