Allow building through water with clearance disabled

This commit is contained in:
Hielke Morsink authored and Michael Steenbeek committed 2017-12-26 16:16:06 +01:00
1 parent fe55ed6f64
commit 4ec213f680
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1290,7 +1290,7 @@ static money32 track_place(sint32 rideIndex,
}
}
if (gMapGroundFlags & ELEMENT_IS_UNDERWATER)
if (gMapGroundFlags & ELEMENT_IS_UNDERWATER && !gCheatsDisableClearanceChecks)
{
gGameCommandErrorText = STR_RIDE_CANT_BUILD_THIS_UNDERWATER;
return MONEY32_UNDEFINED;
+1 -1
View File
@@ -3250,7 +3250,7 @@ sint32 map_can_construct_with_clear_at(sint32 x, sint32 y, sint32 zLow, sint32 z
continue;
}
sint32 water_height = map_get_water_height(tile_element) * 2;
if (water_height && water_height > zLow && tile_element->base_height < zHigh) {
if (water_height && water_height > zLow && tile_element->base_height < zHigh && !gCheatsDisableClearanceChecks) {
gMapGroundFlags |= ELEMENT_IS_UNDERWATER;
if (water_height < zHigh) {
goto loc_68BAE6;