1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-01 11:15:13 +01:00

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.
This commit is contained in:
Hielke Morsink
2018-03-09 16:39:04 +01:00
committed by Michael Steenbeek
parent bf61a4ce63
commit 35f3d9f4c9
2 changed files with 2 additions and 2 deletions

View File

@@ -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.

View File

@@ -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;