mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-27 15:39:32 +01:00
This commit is contained in:
parent
2f5035d6dc
commit
f0a24e98f5
@ -892,7 +892,11 @@ public:
|
|||||||
/* We do not support VehicleClicked() here since the contextual action may only make sense for individual vehicles */
|
/* We do not support VehicleClicked() here since the contextual action may only make sense for individual vehicles */
|
||||||
|
|
||||||
if (vindex == v->index) {
|
if (vindex == v->index) {
|
||||||
ShowVehicleListWindow(v);
|
if (vehgroup.NumVehicles() == 1) {
|
||||||
|
ShowVehicleViewWindow(v);
|
||||||
|
} else {
|
||||||
|
ShowVehicleListWindow(v);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1830,12 +1830,18 @@ public:
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case GB_SHARED_ORDERS:
|
case GB_SHARED_ORDERS: {
|
||||||
assert(vehgroup.NumVehicles() > 0);
|
assert(vehgroup.NumVehicles() > 0);
|
||||||
|
const Vehicle *v = vehgroup.vehicles_begin[0];
|
||||||
/* We do not support VehicleClicked() here since the contextual action may only make sense for individual vehicles */
|
/* We do not support VehicleClicked() here since the contextual action may only make sense for individual vehicles */
|
||||||
|
|
||||||
ShowVehicleListWindow(vehgroup.vehicles_begin[0]);
|
if (vehgroup.NumVehicles() == 1) {
|
||||||
|
ShowVehicleViewWindow(v);
|
||||||
|
} else {
|
||||||
|
ShowVehicleListWindow(v);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default: NOT_REACHED();
|
default: NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user