Mercurial > hg > openttd
changeset 14546:7d591ada6e0e draft
(svn r19117) -Fix [FS#3593]: The Non-stop dropdown wasn't enabled for depot and waypoint orders.
author | terkhen <terkhen@openttd.org> |
---|---|
date | Sat, 13 Feb 2010 10:33:05 +0000 |
parents | 40659b93da62 |
children | 92d5f8fd3be2 |
files | src/order_gui.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -870,6 +870,7 @@ 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 @@ 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);