diff options
author | tron <tron@openttd.org> | 2005-06-29 08:14:09 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-06-29 08:14:09 +0000 |
commit | 6e72d514b7b353d92379855aa44907d9399c83a7 (patch) | |
tree | db0fe756f63527dcd86fb789106434e9aca2d4ed /road_gui.c | |
parent | a45b6278d101b63921cfe20987f938307febb5ef (diff) | |
download | openttd-6e72d514b7b353d92379855aa44907d9399c83a7.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.c | 4 |
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) |