Skip to content

Commit

Permalink
Feature: Control + clicking on a vehicle in the vehicle list window o…
Browse files Browse the repository at this point in the history
…pens the vehicle group window focused on the vehicle's group.
  • Loading branch information
stormcone committed Dec 16, 2019
1 parent e6585f8 commit d8e6f79
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/vehicle_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1625,7 +1625,13 @@ struct VehicleListWindow : public BaseVehicleListWindow {
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;
}

Expand Down

0 comments on commit d8e6f79

Please sign in to comment.