summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-04-05 11:35:32 +0000
committersmatz <smatz@openttd.org>2008-04-05 11:35:32 +0000
commitc830c4a369507dba1d4c7baea80b761c0cf10e41 (patch)
tree9f1940cf863cac5b463f276d52a7e6f0d17f11f6
parentd0fdbce6d20e159c75306cf274dc5d96207f52ba (diff)
downloadopenttd-c830c4a369507dba1d4c7baea80b761c0cf10e41.tar.xz
(svn r12577) -Fix (r11547): the convert signal button disallowed signal dragging when the signal GUI was closed
-rw-r--r--src/rail_gui.cpp2
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;