Update to 12.2

This commit is contained in:
dP
2022-04-02 17:32:19 +03:00
87 changed files with 1718 additions and 580 deletions

View File

@@ -748,17 +748,23 @@ public:
NOT_REACHED();
}
if (v) {
if (citymania::_fn_mod) {
if (this->grouping == GB_NONE) {
this->SelectGroup(v->group_id);
} else {
ShowOrdersWindow(v);
}
if (citymania::_fn_mod && this->grouping == GB_SHARED_ORDERS) {
ShowOrdersWindow(v);
} else {
this->vehicle_sel = v->index;
if (citymania::_fn_mod && this->grouping == GB_NONE) {
/*
* It only makes sense to select a group if not using shared orders
* since two vehicles sharing orders can be from different groups.
*/
this->SelectGroup(v->group_id);
}
SetObjectToPlaceWnd(SPR_CURSOR_MOUSE, PAL_NONE, HT_DRAG, this, CM_DDSP_GROUP);
SetMouseCursorVehicle(v, EIT_IN_LIST);
_cursor.vehchain = true;
this->SetDirty();
}
}