mirror of https://github.com/OpenTTD/OpenTTD
Feature: Control + clicking on a vehicle in the vehicle list window opens the vehicle group window focused on the vehicle's group.
parent
798e9ee93e
commit
fea5151ee1
|
@ -1625,7 +1625,13 @@ public:
|
||||||
if (id_v >= this->vehicles.size()) return; // click out of list bound
|
if (id_v >= this->vehicles.size()) return; // click out of list bound
|
||||||
|
|
||||||
const Vehicle *v = this->vehicles[id_v];
|
const Vehicle *v = this->vehicles[id_v];
|
||||||
if (!VehicleClicked(v)) ShowVehicleViewWindow(v);
|
if (!VehicleClicked(v)) {
|
||||||
|
if (_ctrl_pressed) {
|
||||||
|
ShowCompanyGroupForVehicle(v);
|
||||||
|
} else {
|
||||||
|
ShowVehicleViewWindow(v);
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue