changeset 10804:2c9373a99b65 draft

(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.
author rubidium <rubidium@openttd.org>
date Sun, 18 Jan 2009 16:26:59 +0000
parents 8b3ca2dbef97
children b115482f4edb
files src/terraform_cmd.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/terraform_cmd.cpp
+++ b/src/terraform_cmd.cpp
@@ -351,6 +351,8 @@
 {
 	if (p1 >= MapSize()) return CMD_ERROR;
 
+	_terraform_err_tile = INVALID_TILE;
+
 	/* remember level height */
 	uint oldh = TileHeight(p1);