diff options
author | stormcone <48624099+stormcone@users.noreply.github.com> | 2019-05-10 19:33:59 +0200 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-12-23 18:04:10 +0000 |
commit | a363933d0899f6e79bf04eb38097ce1170f02bee (patch) | |
tree | 89df59d34ae0cca19ed8191ee3974c5369109b13 | |
parent | 551bde77a49878a984c04c47c280c9681292c84f (diff) | |
download | openttd-a363933d0899f6e79bf04eb38097ce1170f02bee.tar.xz |
Feature: Control + click on a vehicle in the vehicle group window selects and scrolls to the vehicle's group.
-rw-r--r-- | src/group_gui.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp index a4c00c129..8d7c042d2 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -734,6 +734,10 @@ public: this->vehicle_sel = v->index; + if (_ctrl_pressed) { + this->SelectGroup(v->group_id); + } + SetObjectToPlaceWnd(SPR_CURSOR_MOUSE, PAL_NONE, HT_DRAG, this); SetMouseCursorVehicle(v, EIT_IN_LIST); _cursor.vehchain = true; |