mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r20821) -Fix [FS#4129]: terraforming the land under objects could leave sloped or elevated sea tiles
This commit is contained in:
parent
6b35ad3f0b
commit
6b4d2f5ae6
|
@ -627,6 +627,7 @@ CommandCost CmdLandscapeClear(TileIndex tile, DoCommandFlag flags, uint32 p1, ui
|
|||
if ((flags & DC_NO_WATER) && HasTileWaterClass(tile) && IsTileOnWater(tile)) {
|
||||
return_cmd_error(STR_ERROR_CAN_T_BUILD_ON_WATER);
|
||||
}
|
||||
if (do_clear && (flags & DC_EXEC)) DoClearSquare(tile);
|
||||
return cost;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue