1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00

Disable clearance checks for underwater and underground walls

Also update network version.
This commit is contained in:
Margen67
2017-03-31 00:38:03 -07:00
committed by Michael Steenbeek
parent ea7f1f03e7
commit 10d1e8a538
2 changed files with 3 additions and 3 deletions

View File

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

View File

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