From 10d1e8a538cbed0d0611e1a75439a8201d7d2aac Mon Sep 17 00:00:00 2001 From: Margen67 Date: Fri, 31 Mar 2017 00:38:03 -0700 Subject: [PATCH] Disable clearance checks for underwater and underground walls Also update network version. --- src/openrct2/network/network.h | 2 +- src/openrct2/world/wall.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openrct2/network/network.h b/src/openrct2/network/network.h index b94c2b7e0f..0ae378af72 100644 --- a/src/openrct2/network/network.h +++ b/src/openrct2/network/network.h @@ -55,7 +55,7 @@ extern "C" { // This define 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 "11" +#define NETWORK_STREAM_VERSION "12" #define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION #ifdef __cplusplus diff --git a/src/openrct2/world/wall.cpp b/src/openrct2/world/wall.cpp index 033979c107..0276a42596 100644 --- a/src/openrct2/world/wall.cpp +++ b/src/openrct2/world/wall.cpp @@ -379,14 +379,14 @@ static money32 WallPlace(uint8 wallType, uint16 waterHeight = surfaceElement->properties.surface.terrain & MAP_ELEMENT_WATER_HEIGHT_MASK; waterHeight *= 16; - if (position.z < waterHeight) + if (position.z < waterHeight && !gCheatsDisableClearanceChecks) { gGameCommandErrorText = STR_CANT_BUILD_THIS_UNDERWATER; return MONEY32_UNDEFINED; } } - if (position.z / 8 < surfaceElement->base_height) + if (position.z / 8 < surfaceElement->base_height && !gCheatsDisableClearanceChecks) { gGameCommandErrorText = STR_CAN_ONLY_BUILD_THIS_ABOVE_GROUND; return MONEY32_UNDEFINED;