File diff r26387:ac2c9d056573 → r26388:95d663568b17
src/vehicle_gui.cpp
Show inline comments
 
@@ -2792,12 +2792,15 @@ public:
 
		this->SetWidgetDisabledState(WID_VV_REFIT, !refitable_and_stopped_in_depot || !is_localcompany);
 
		this->SetWidgetDisabledState(WID_VV_CLONE, !is_localcompany);
 

	
 
		if (v->type == VEH_TRAIN) {
 
			this->SetWidgetLoweredState(WID_VV_FORCE_PROCEED, Train::From(v)->force_proceed == TFP_SIGNAL);
 
			this->SetWidgetDisabledState(WID_VV_FORCE_PROCEED, !is_localcompany);
 
		}
 

	
 
		if (v->type == VEH_TRAIN || v->type == VEH_ROAD) {
 
			this->SetWidgetDisabledState(WID_VV_TURN_AROUND, !is_localcompany);
 
		}
 

	
 
		this->SetWidgetDisabledState(WID_VV_ORDER_LOCATION, v->current_order.GetLocation(v) == INVALID_TILE);
 

	
 
		this->DrawWidgets();