diff options
author | rubidium <rubidium@openttd.org> | 2009-01-18 16:26:59 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-18 16:26:59 +0000 |
commit | 55e8be50452bd8ce4ba253d3ef56dd9d407b7b73 (patch) | |
tree | ef1c28bb504b493ce723361d5ff30662fb6da71e /src/terraform_cmd.cpp | |
parent | 9cc64bfa21a21ccaa6d96d34019655df79ba6a0b (diff) | |
download | openttd-55e8be50452bd8ce4ba253d3ef56dd9d407b7b73.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.
Diffstat (limited to 'src/terraform_cmd.cpp')
-rw-r--r-- | src/terraform_cmd.cpp | 2 |
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); |