Feature: Control + clicking on a vehicle in the vehicle list window opens the vehicle group window focused on the vehicle's group.

pull/128/head
stormcone 5 years ago committed by Charles Pigott
parent 798e9ee93e
commit fea5151ee1

@ -1625,7 +1625,13 @@ public:
if (id_v >= this->vehicles.size()) return; // click out of list bound
const Vehicle *v = this->vehicles[id_v];
if (!VehicleClicked(v)) ShowVehicleViewWindow(v);
if (!VehicleClicked(v)) {
if (_ctrl_pressed) {
ShowCompanyGroupForVehicle(v);
} else {
ShowVehicleViewWindow(v);
}
}
break;
}

Loading…
Cancel
Save