summaryrefslogtreecommitdiff
path: root/src/order_gui.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-02-13 10:33:05 +0000
committerterkhen <terkhen@openttd.org>2010-02-13 10:33:05 +0000
commitff80df980a69fdb14540841969be489bbd655a4c (patch)
tree7a84940c34dc87dd15f55eba8c6b129654136d57 /src/order_gui.cpp
parent077c751201ece67a3d0f063f7be83e386b0037f7 (diff)
downloadopenttd-ff80df980a69fdb14540841969be489bbd655a4c.tar.xz
(svn r19117) -Fix [FS#3593]: The Non-stop dropdown wasn't enabled for depot and waypoint orders.
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r--src/order_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index 20a881cf3..23e970d84 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -870,6 +870,7 @@ public:
left_sel->SetDisplayedPlane(DP_LEFT_NONSTOP);
middle_sel->SetDisplayedPlane(DP_MIDDLE_LOAD);
right_sel->SetDisplayedPlane(DP_RIGHT_UNLOAD);
+ this->EnableWidget(ORDER_WIDGET_NON_STOP);
this->SetWidgetLoweredState(ORDER_WIDGET_NON_STOP, order->GetNonStopType() & ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS);
}
this->DisableWidget(ORDER_WIDGET_FULL_LOAD);
@@ -883,6 +884,7 @@ public:
left_sel->SetDisplayedPlane(DP_LEFT_NONSTOP);
middle_sel->SetDisplayedPlane(DP_MIDDLE_REFIT);
right_sel->SetDisplayedPlane(DP_RIGHT_SERVICE);
+ this->EnableWidget(ORDER_WIDGET_NON_STOP);
this->SetWidgetLoweredState(ORDER_WIDGET_NON_STOP, order->GetNonStopType() & ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS);
}
this->SetWidgetLoweredState(ORDER_WIDGET_SERVICE, order->GetDepotOrderType() & ODTFB_SERVICE);