1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-21 03:12:41 +01:00

Fix #8922: Show vehicle window for single vehicle in shared order grouping (#8926)

This commit is contained in:
Bernard Teo
2021-04-07 02:30:35 +08:00
committed by Charles Pigott
parent 9acb8f7d2c
commit f0f87ee0dc
2 changed files with 13 additions and 3 deletions

View File

@@ -892,7 +892,11 @@ public:
/* We do not support VehicleClicked() here since the contextual action may only make sense for individual vehicles */
if (vindex == v->index) {
ShowVehicleListWindow(v);
if (vehgroup.NumVehicles() == 1) {
ShowVehicleViewWindow(v);
} else {
ShowVehicleListWindow(v);
}
}
break;
}