(svn r2366) Use SetRedErrorSquare() instead of home brewed version
authortron
Thu, 26 May 2005 19:41:58 +0000
changeset 1860 cc0019652d0e
parent 1859 b3af0081df39
child 1861 8b6f1d021317
(svn r2366) Use SetRedErrorSquare() instead of home brewed version
misc_gui.c
--- a/misc_gui.c	Thu May 26 16:31:32 2005 +0000
+++ b/misc_gui.c	Thu May 26 19:41:58 2005 +0000
@@ -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;
 		}