From 164ec3ac07c514cdce692554f6339ce1f05d8869 Mon Sep 17 00:00:00 2001 From: Tyler Trahan Date: Wed, 21 Sep 2022 04:39:56 -0600 Subject: [PATCH] Fix: Disable "turn around" button for other companies' road vehicles (#10033) --- src/vehicle_gui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 2fe403391b..e4fc8aa554 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -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); }