changeset 1860:b5dbf4a1788a draft

(svn r2366) Use SetRedErrorSquare() instead of home brewed version
author tron <tron@openttd.org>
date Thu, 26 May 2005 19:41:58 +0000
parents 8c20595a4262
children 2dbb8e3305f0
files misc_gui.c
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -496,12 +496,8 @@
 			DeleteWindow(w);
 		break;
 	case WE_DESTROY: {
-		TileHighlightData *thd = _thd_ptr;
-		TileIndex tile = thd->redsq;
-		thd->redsq = 0;
+		SetRedErrorSquare(0);
 		_switch_mode_errorstr = INVALID_STRING_ID;
-		if (tile != 0)
-			MarkTileDirtyByTile(tile);
 		break;
 		}