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:
committed by
Michael Steenbeek
parent
bf61a4ce63
commit
35f3d9f4c9
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user