|
|
@ -2795,6 +2795,9 @@ public:
|
|
|
|
if (v->type == VEH_TRAIN) {
|
|
|
|
if (v->type == VEH_TRAIN) {
|
|
|
|
this->SetWidgetLoweredState(WID_VV_FORCE_PROCEED, Train::From(v)->force_proceed == TFP_SIGNAL);
|
|
|
|
this->SetWidgetLoweredState(WID_VV_FORCE_PROCEED, Train::From(v)->force_proceed == TFP_SIGNAL);
|
|
|
|
this->SetWidgetDisabledState(WID_VV_FORCE_PROCEED, !is_localcompany);
|
|
|
|
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_TURN_AROUND, !is_localcompany);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|