summaryrefslogtreecommitdiff
path: root/road_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-06-29 08:14:09 +0000
committertron <tron@openttd.org>2005-06-29 08:14:09 +0000
commitf18346732297370a5ea0bcfbaf8f7b0cc0ad3b54 (patch)
treedb0fe756f63527dcd86fb789106434e9aca2d4ed /road_gui.c
parent35e614b43632c09224e0f86d12e1f1a5ef43ef12 (diff)
downloadopenttd-f18346732297370a5ea0bcfbaf8f7b0cc0ad3b54.tar.xz
(svn r2496) -Fix: [1179933] When toggling build/remove via keyboard the selection wasn't correctly redrawn
Diffstat (limited to 'road_gui.c')
-rw-r--r--road_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/road_gui.c b/road_gui.c
index a47c7ab8e..439d86a7f 100644
--- a/road_gui.c
+++ b/road_gui.c
@@ -159,8 +159,8 @@ static void BuildRoadClick_Remove(Window *w)
return;
SetWindowDirty(w);
SndPlayFx(SND_15_BEEP);
- _thd.make_square_red = !!((w->click_state ^= (1 << 11)) & (1<<11));
- MarkTileDirty(_thd.pos.x, _thd.pos.y);
+ w->click_state ^= (1 << 11);
+ SetSelectionRed((w->click_state & (1 << 11)) != 0);
}
static void BuildRoadClick_Landscaping(Window *w)