|
|
|
@ -1830,12 +1830,18 @@ public:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
case GB_SHARED_ORDERS:
|
|
|
|
|
case GB_SHARED_ORDERS: {
|
|
|
|
|
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 */
|
|
|
|
|
|
|
|
|
|
ShowVehicleListWindow(vehgroup.vehicles_begin[0]);
|
|
|
|
|
if (vehgroup.NumVehicles() == 1) {
|
|
|
|
|
ShowVehicleViewWindow(v);
|
|
|
|
|
} else {
|
|
|
|
|
ShowVehicleListWindow(v);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
default: NOT_REACHED();
|
|
|
|
|
}
|
|
|
|
|