Changeset - r26388:95d663568b17
[Not reviewed]
master
0 1 0
Tyler Trahan - 21 months ago 2022-09-21 10:39:56
tyler@tylertrahan.com
Fix: Disable "turn around" button for other companies' road vehicles (#10033)
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/vehicle_gui.cpp
Show inline comments
 
@@ -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);
 
		}
 

	
0 comments (0 inline, 0 general)