From 331d4d2d45beafbaaf02aa2d3a2a8a6e8d2e2068 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 18 Jan 2009 16:26:59 +0000 Subject: (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. --- src/terraform_cmd.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3-70-g09d2