@@ -21,12 +21,13 @@
#include "widgets/dropdown_func.h"
#include "tilehighlight_func.h"
#include "vehicle_gui_base.h"
#include "core/geometry_func.hpp"
#include "company_base.h"
#include "company_gui.h"
#include "gui.h"
#include "widgets/group_widget.h"
#include "table/sprites.h"
#include "safeguards.h"
@@ -742,23 +743,25 @@ public:
}
default:
NOT_REACHED();
if (v) {
this->vehicle_sel = v->index;
if (_ctrl_pressed) {
this->SelectGroup(v->group_id);
if (this->grouping == GB_NONE) {
} else {
ShowOrdersWindow(v);
SetObjectToPlaceWnd(SPR_CURSOR_MOUSE, PAL_NONE, HT_DRAG, this);
SetMouseCursorVehicle(v, EIT_IN_LIST);
_cursor.vehchain = true;
this->SetDirty();
break;
case WID_GL_CREATE_GROUP: { // Create a new group