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 /rail_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 'rail_gui.c')
-rw-r--r-- | rail_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rail_gui.c b/rail_gui.c index 0e8bfc775..708f180f2 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -288,9 +288,9 @@ static void BuildRailClick_Remove(Window *w) SetWindowDirty(w); SndPlayFx(SND_15_BEEP); - _thd.make_square_red = !!((w->click_state ^= (1 << 16)) & (1<<16)); - MarkTileDirty(_thd.pos.x, _thd.pos.y); + w->click_state ^= (1 << 16); _remove_button_clicked = (w->click_state & (1 << 16)) != 0; + SetSelectionRed((w->click_state & (1 << 16)) != 0); // handle station builder if( w->click_state & (1 << 16) ) |