summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-05-26 19:41:58 +0000
committertron <tron@openttd.org>2005-05-26 19:41:58 +0000
commitceb7f17808676b876cb8f546e849eebd88decebb (patch)
treec902fca63fdc878e4153824149edfcaedcaa0933
parente383ee6bbaec4eebc29bd1388bf816d290e98565 (diff)
downloadopenttd-ceb7f17808676b876cb8f546e849eebd88decebb.tar.xz
(svn r2366) Use SetRedErrorSquare() instead of home brewed version
-rw-r--r--misc_gui.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/misc_gui.c b/misc_gui.c
index a02a80c15..37d7c2509 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -496,12 +496,8 @@ static void ErrmsgWndProc(Window *w, WindowEvent *e)
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;
}