Skip to content

Commit aef99fc

Browse files
committed
Improve single unit groups handling
1 parent 1a67e61 commit aef99fc

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

addons/ui/fnc_openLobbyManager.sqf

+6-7
Original file line numberDiff line numberDiff line change
@@ -340,18 +340,17 @@ _ctrlButtonOK ctrlAddEventHandler ["ButtonClick", {
340340
private _unit = _ctrlSlots getVariable (_ctrlSlots tvData _unitPath);
341341
private _description = _unit getVariable QGVAR(description);
342342

343-
set3DENSelected [_unit];
344-
345343
if (_multipleUnits) then {
344+
set3DENSelected [_unit];
346345
do3DENAction "CutUnit";
347346
do3DENAction "PasteUnitOrig";
348-
};
349347

350-
_unit = get3DENSelected "Object" select 0;
351-
_units pushBack _unit;
348+
_unit = get3DENSelected "Object" select 0;
349+
_units pushBack _unit;
352350

353-
add3DENConnection ["Group", _units, _group];
354-
_group selectLeader _leader;
351+
add3DENConnection ["Group", _units, _group];
352+
_group selectLeader _leader;
353+
};
355354

356355
_unit set3DENAttribute ["description", _description];
357356
};

0 commit comments

Comments
 (0)