summaryrefslogtreecommitdiff
path: root/road_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-11-26 21:52:18 +0000
committertron <tron@openttd.org>2004-11-26 21:52:18 +0000
commit908adfc191d65d8040b966b1b307b9fd7fc8f4eb (patch)
tree5c97e73400081253c584244564bb6661d1a844e7 /road_gui.c
parent08e16d966a108d6021fa8007fdc3acfe43670568 (diff)
downloadopenttd-908adfc191d65d8040b966b1b307b9fd7fc8f4eb.tar.xz
(svn r829) Fix small glitch: Immediately redraw the tile selection square when using the hotkey to toggle removal
Diffstat (limited to 'road_gui.c')
-rw-r--r--road_gui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/road_gui.c b/road_gui.c
index 61b8a1668..f28aff360 100644
--- a/road_gui.c
+++ b/road_gui.c
@@ -161,6 +161,7 @@ static void BuildRoadClick_Remove(Window *w)
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)