File diff r25965:ac36cbd5989d → r25966:8233c136b1b0
src/group_gui.cpp
Show inline comments
 
@@ -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) {
 
							this->SelectGroup(v->group_id);
 
						} else {
 
							ShowOrdersWindow(v);
 
						}
 
					} else {
 
						this->vehicle_sel = v->index;
 
						SetObjectToPlaceWnd(SPR_CURSOR_MOUSE, PAL_NONE, HT_DRAG, this);
 
						SetMouseCursorVehicle(v, EIT_IN_LIST);
 
						_cursor.vehchain = true;
 
						this->SetDirty();
 
					}
 

	
 
					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