diff options
author | smatz <smatz@openttd.org> | 2008-04-05 11:35:32 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-04-05 11:35:32 +0000 |
commit | 65fedf0cfb863232d198f4b9ab9cf355b3aa3c52 (patch) | |
tree | 9f1940cf863cac5b463f276d52a7e6f0d17f11f6 /src | |
parent | b2e4adc2b8e3a06c25f0ad988a3826b6f4ddfc85 (diff) | |
download | openttd-65fedf0cfb863232d198f4b9ab9cf355b3aa3c52.tar.xz |
(svn r12577) -Fix (r11547): the convert signal button disallowed signal dragging when the signal GUI was closed
Diffstat (limited to 'src')
-rw-r--r-- | src/rail_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index bbab6bfda..f69ada958 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -601,7 +601,7 @@ static void BuildRailToolbWndProc(Window *w, WindowEvent *e) case WE_PLACE_DRAG: { /* no dragging if you have pressed the convert button */ - if (_convert_signal_button && w->IsWidgetLowered(RTW_BUILD_SIGNALS)) return; + if (FindWindowById(WC_BUILD_SIGNAL, 0) != NULL && _convert_signal_button && w->IsWidgetLowered(RTW_BUILD_SIGNALS)) return; VpSelectTilesWithMethod(e->we.place.pt.x, e->we.place.pt.y, e->we.place.select_method); return; |