mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-09 19:10:38 +00:00
(svn r2366) Use SetRedErrorSquare() instead of home brewed version
This commit is contained in:
parent
d90948abb7
commit
6566941077
@ -496,12 +496,8 @@ static void ErrmsgWndProc(Window *w, WindowEvent *e)
|
|||||||
DeleteWindow(w);
|
DeleteWindow(w);
|
||||||
break;
|
break;
|
||||||
case WE_DESTROY: {
|
case WE_DESTROY: {
|
||||||
TileHighlightData *thd = _thd_ptr;
|
SetRedErrorSquare(0);
|
||||||
TileIndex tile = thd->redsq;
|
|
||||||
thd->redsq = 0;
|
|
||||||
_switch_mode_errorstr = INVALID_STRING_ID;
|
_switch_mode_errorstr = INVALID_STRING_ID;
|
||||||
if (tile != 0)
|
|
||||||
MarkTileDirtyByTile(tile);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user