changeset 16125:4a474264f63a draft

(svn r20821) -Fix [FS#4129]: terraforming the land under objects could leave sloped or elevated sea tiles
author yexo <yexo@openttd.org>
date Fri, 17 Sep 2010 15:16:19 +0000
parents 1a876551f6d7
children 79fe0dba5c03
files src/landscape.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/landscape.cpp
+++ b/src/landscape.cpp
@@ -627,6 +627,7 @@
 			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;
 		}
 	}