summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-18 16:26:59 +0000
committerrubidium <rubidium@openttd.org>2009-01-18 16:26:59 +0000
commit331d4d2d45beafbaaf02aa2d3a2a8a6e8d2e2068 (patch)
treeef1c28bb504b493ce723361d5ff30662fb6da71e
parent52e0c6fd359283b2da89a2566c105cf2ebff5864 (diff)
downloadopenttd-331d4d2d45beafbaaf02aa2d3a2a8a6e8d2e2068.tar.xz
(svn r15138) -Fix [FS#2542]: tile error location not reset when leveling land causing a tile to be highlighted when there was nothing to flatten.
-rw-r--r--src/terraform_cmd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/terraform_cmd.cpp b/src/terraform_cmd.cpp
index cc71f786a..aa79ac993 100644
--- a/src/terraform_cmd.cpp
+++ b/src/terraform_cmd.cpp
@@ -351,6 +351,8 @@ CommandCost CmdLevelLand(TileIndex tile, uint32 flags, uint32 p1, uint32 p2, con
{
if (p1 >= MapSize()) return CMD_ERROR;
+ _terraform_err_tile = INVALID_TILE;
+
/* remember level height */
uint oldh = TileHeight(p1);