# HG changeset patch # User Tyler Trahan # Date 2022-09-21 10:39:56 # Node ID 95d663568b174dcf89ce636012f656e6ae76fb66 # Parent ac2c9d056573d517fb687731974a3ad2cd83dc80 Fix: Disable "turn around" button for other companies' road vehicles (#10033) diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp --- 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); }