From a363933d0899f6e79bf04eb38097ce1170f02bee Mon Sep 17 00:00:00 2001 From: stormcone <48624099+stormcone@users.noreply.github.com> Date: Fri, 10 May 2019 19:33:59 +0200 Subject: Feature: Control + click on a vehicle in the vehicle group window selects and scrolls to the vehicle's group. --- src/group_gui.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2