Fix: Disable "turn around" button for other companies' road vehicles (#10033)

This commit is contained in:
Tyler Trahan 2022-09-21 04:39:56 -06:00 committed by GitHub
parent 07443969f9
commit 164ec3ac07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -2795,6 +2795,9 @@ public:
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);
}