diff options
author | yexo <yexo@openttd.org> | 2010-09-17 15:16:19 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-09-17 15:16:19 +0000 |
commit | 6b4d2f5ae63190043a5db82a9a4b0d961a9f3af1 (patch) | |
tree | 7ff9c8d6cbf66e5237f3091b65de66fff39afaf2 | |
parent | 6b35ad3f0bd9028b3e619cb2eadfba05c425faa5 (diff) | |
download | openttd-6b4d2f5ae63190043a5db82a9a4b0d961a9f3af1.tar.xz |
(svn r20821) -Fix [FS#4129]: terraforming the land under objects could leave sloped or elevated sea tiles
-rw-r--r-- | src/landscape.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/landscape.cpp b/src/landscape.cpp index d85f24dea..6f34a1788 100644 --- a/src/landscape.cpp +++ b/src/landscape.cpp @@ -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; } } |