forked from rosebudai/OpenRCT2-Web
Allow building through water with clearance disabled
This commit is contained in:
1 parent
fe55ed6f64
commit
4ec213f680
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user