# HG changeset patch # User tron # Date 1101505938 0 # Node ID 2de07a146b19b397a5e12e2e2870176636678769 # Parent a6eaa0d97d8dec4f6c594e9119f741a8efa288c1 (svn r829) Fix small glitch: Immediately redraw the tile selection square when using the hotkey to toggle removal diff -r a6eaa0d97d8d -r 2de07a146b19 rail_gui.c --- a/rail_gui.c Fri Nov 26 21:14:42 2004 +0000 +++ b/rail_gui.c Fri Nov 26 21:52:18 2004 +0000 @@ -290,6 +290,7 @@ SndPlayFx(0x13); _thd.make_square_red = !!((w->click_state ^= (1 << 16)) & (1<<16)); + MarkTileDirty(_thd.pos.x, _thd.pos.y); _remove_button_clicked = (w->click_state & (1 << 16)) != 0; // handle station builder diff -r a6eaa0d97d8d -r 2de07a146b19 road_gui.c --- a/road_gui.c Fri Nov 26 21:14:42 2004 +0000 +++ b/road_gui.c Fri Nov 26 21:52:18 2004 +0000 @@ -161,6 +161,7 @@ SetWindowDirty(w); SndPlayFx(0x13); _thd.make_square_red = !!((w->click_state ^= (1 << 12)) & (1<<12)); + MarkTileDirty(_thd.pos.x, _thd.pos.y); } static void BuildRoadClick_Purchase(Window *w)