Skip to content

Commit

Permalink
Fix enum errors (#5834)
Browse files Browse the repository at this point in the history
* Fix enum errors

* Update fnc_paradropItem.sqf

* Update fnc_actionPlaceInBodyBag.sqf

* Update fnc_compat_spectatorBI.sqf

* Update ACE_ZeusActions.hpp
  • Loading branch information
commy2 authored and PabstMirror committed Dec 1, 2017
1 parent 9c4a32d commit 7cfb2b8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion addons/cargo/functions/fnc_paradropItem.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private _itemObject = if (_item isEqualType objNull) then {
[QGVAR(serverUnload), [_item, _posBehindVehicleAGL]] call CBA_fnc_serverEvent;
_item
} else {
private _newItem = createVehicle [_item, _posBehindVehicleAGL, [], 0, ""];
private _newItem = createVehicle [_item, _posBehindVehicleAGL, [], 0, "NONE"];
_newItem setPosASL (AGLtoASL _posBehindVehicleAGL);
_newItem
};
Expand Down
2 changes: 1 addition & 1 deletion addons/cargo/functions/fnc_unloadItem.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if (_item isEqualType objNull) then {
// do both on server to ensure they are executed in the correct order
[QGVAR(serverUnload), [_item, _emptyPosAGL]] call CBA_fnc_serverEvent;
} else {
private _newItem = createVehicle [_item, _emptyPosAGL, [], 0, ""];
private _newItem = createVehicle [_item, _emptyPosAGL, [], 0, "NONE"];
_newItem setPosASL (AGLtoASL _emptyPosAGL);
};

Expand Down
2 changes: 1 addition & 1 deletion addons/interaction/ACE_ZeusActions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ACE_ZeusActions {
class remoteControl {
displayName = "$STR_A3_CfgVehicles_ModuleRemoteControl_F";
icon = "\A3\Modules_F_Curator\Data\portraitRemoteControl_ca.paa";
statement = "_unit = objNull; { if ((side _x in [east,west,resistance,civilian]) && !(isPlayer _x)) exitWith { _unit = _x; }; } forEach (curatorSelected select 0); bis_fnc_curatorObjectPlaced_mouseOver = ['OBJECT',_unit]; (group _target) createUnit ['ModuleRemoteControl_F',[0,0,0],[],0,''];";
statement = "_unit = objNull; { if ((side _x in [east,west,resistance,civilian]) && !(isPlayer _x)) exitWith { _unit = _x; }; } forEach (curatorSelected select 0); bis_fnc_curatorObjectPlaced_mouseOver = ['OBJECT',_unit]; (group _target) createUnit ['ModuleRemoteControl_F',[0,0,0],[],0,'NONE'];";
};
};

Expand Down
2 changes: 1 addition & 1 deletion addons/medical/functions/fnc_actionPlaceInBodyBag.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private _direction = _dirVect call CBA_fnc_vectDir;
//move the body away now, so it won't physX the bodyBag object (this setPos seems to need to be called where object is local)
_target setPosASL [-5000, -5000, 0];

private _bodyBag = createVehicle ["ACE_bodyBagObject", _position, [], 0, ""];
private _bodyBag = createVehicle ["ACE_bodyBagObject", _position, [], 0, "NONE"];

// prevent body bag from flipping
_bodyBag setPosASL _position;
Expand Down
2 changes: 1 addition & 1 deletion addons/spectator/functions/fnc_compat_spectatorBI.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if (_respawn in [4,5]) then {

// Switch to a virtual unit so draw3D continues to work
private _grp = createGroup [sideLogic, true];
private _virtual = _grp createUnit [QGVAR(virtual),[0,0,0],[],0,""];
private _virtual = _grp createUnit [QGVAR(virtual),[0,0,0],[],0,"NONE"];

// Prevent unit falling into water (compatibility for some addons)
_virtual enableSimulation false;
Expand Down

0 comments on commit 7cfb2b8

Please sign in to comment.