Skip to content

Commit

Permalink
Aufgabe aus #501 => !(xxx isEqualTo []) ZU xxx isNotEqualTo []
Browse files Browse the repository at this point in the history
  • Loading branch information
shukari committed Oct 21, 2021
1 parent 02471f2 commit 6c870c9
Show file tree
Hide file tree
Showing 25 changed files with 50 additions and 50 deletions.
2 changes: 1 addition & 1 deletion addons/advSlingload/XEH_postClientInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"Lastenseil abtrennen",
"",
{_target call FUNC(detach)},
{!((ropes _target) isEqualTo [])}
{(ropes _target) isNotEqualTo []}
] call ace_interact_menu_fnc_createAction
],
[
Expand Down
2 changes: 1 addition & 1 deletion addons/arsenal/XEH_postClientInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if (isNil "TB_blacklistRollen_themen") then {TB_blacklistRollen_themen = []};
{
params ["_unit", "_container", "_item"];

if (local _unit && {!((_unit nearEntities ["TB_arsenal_base", 6]) isEqualTo [])}) then
if (local _unit && {(_unit nearEntities ["TB_arsenal_base", 6]) isNotEqualTo []}) then
{
if (typeOf _container == "GroundWeaponHolder") then {deleteVehicle _container};
};
Expand Down
4 changes: 2 additions & 2 deletions addons/arsenal/functions/fnc_actionMain.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ _args params ["_target", "_player", "_params", "_actionData"];
if !([_target] call FUNC(isArsenalType)) exitWith {};

private _tbCargo = ACE_player getVariable [QGVAR(arsenalCargo), []];
if (!(_tbCargo isEqualTo []) && {!(_tbCargo isEqualTo (_target getVariable ["ace_arsenal_virtualItems", []]))}) then
if (_tbCargo isNotEqualTo [] && {_tbCargo isNotEqualTo (_target getVariable ["ace_arsenal_virtualItems", []])}) then
{
_target setVariable ["ace_arsenal_virtualItems", _tbCargo];

{
if (!(_x isEqualTo _target) && [_x] call FUNC(isArsenalType) && {!(_tbCargo isEqualTo (_x getVariable ["ace_arsenal_virtualItems", []]))}) then
if (_x isNotEqualTo _target && [_x] call FUNC(isArsenalType) && {_tbCargo isNotEqualTo (_x getVariable ["ace_arsenal_virtualItems", []])}) then
{
_x setVariable ["ace_arsenal_virtualItems", _tbCargo];
};
Expand Down
2 changes: 1 addition & 1 deletion addons/arsenal/functions/fnc_setArsenal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ ACE_player setVariable [QGVAR(arsenalCargo), _tbCargo];

// Arsenale syncen
{
if ([_x] call FUNC(isArsenalType) && {!(_tbCargo isEqualTo (_x getVariable ["ace_arsenal_virtualItems", []]))}) then
if ([_x] call FUNC(isArsenalType) && {_tbCargo isNotEqualTo (_x getVariable ["ace_arsenal_virtualItems", []])}) then
{
_x setVariable ["ace_arsenal_virtualItems", _tbCargo];
};
Expand Down
2 changes: 1 addition & 1 deletion addons/building/functions/fnc_getVehicleType.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ if ([_target] call ace_refuel_fnc_getFuel > 0) then {_info pushBack "Tankwagen"}
if (_target getVariable ["ace_rearm_isSupplyVehicle", false] ||
getNumber (configFile >> "CfgVehicles" >> typeOf _target >> "ace_rearm_defaultSupply") > 0) then {_info pushBack "Munitionswagen"};

if !(_info isEqualTo []) then {hint (_info joinString "\n")};
if (_info isNotEqualTo []) then {hint (_info joinString "\n")};
2 changes: 1 addition & 1 deletion addons/eden/configs/Cfg3DEN.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class Cfg3DEN
property = QEGVAR(main,defineAmmo);
control = "Edit";

expression = "private _compValue = call compile _value; if (!is3DEN && _value != '[]' && _value != '' && !((magazines _this) isEqualTo _compValue)) then {_this setVehicleAmmoDef 0; {_x params ['_ammo', ['_amount', 999999]]; _this addMagazine [_ammo, _amount]} forEach _compValue; reload _this}";
expression = "private _compValue = call compile _value; if (!is3DEN && _value != '[]' && _value != '' && (magazines _this) isNotEqualTo _compValue) then {_this setVehicleAmmoDef 0; {_x params ['_ammo', ['_amount', 999999]]; _this addMagazine [_ammo, _amount]} forEach _compValue; reload _this}";

defaultValue = "magazines _this";

Expand Down
6 changes: 3 additions & 3 deletions addons/eden/functions/fnc_inkognitoSystem.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,16 @@ TB_umziehenFNC = {
TB_condLaden = {
params ["_mode"];
(profileNamespace getVariable ["TB_umziehen", []]) params ["", "", ["_currentMode", ""]];
!((nearestObjects [ACE_player, TB_inkognitoSystem_station, 7]) isEqualTo []) &&
_currentMode != "" && !(_currentMode isEqualTo _mode)
(nearestObjects [ACE_player, TB_inkognitoSystem_station, 7]) isNotEqualTo [] &&
_currentMode != "" && _currentMode isNotEqualTo _mode
};
private _actionLadenMil = ["Laden Militär", "Laden Militär", "", {["mil", false] call TB_umziehenFNC}, {["mil"] call TB_condLaden}] call ace_interact_menu_fnc_createAction;
[player, 1, ["ACE_SelfActions", "Anziehsachen"], _actionLadenMil] call ace_interact_menu_fnc_addActionToObject;
private _actionLadenZivil = ["Laden Zivil", "Laden Zivil", "", {["zivil", false] call TB_umziehenFNC}, {["zivil"] call TB_condLaden}] call ace_interact_menu_fnc_createAction;
[player, 1, ["ACE_SelfActions", "Anziehsachen"], _actionLadenZivil] call ace_interact_menu_fnc_addActionToObject;

// Speichern
private _condSpeichern = {!((nearestObjects [ACE_player, ["TB_arsenal_base"], 15]) isEqualTo [])};
private _condSpeichern = {(nearestObjects [ACE_player, ["TB_arsenal_base"], 15]) isNotEqualTo []};
private _actionSpeichernMil = ["Speichern Militär", "Speichern Militär", "", {["mil", true] call TB_umziehenFNC}, _condSpeichern] call ace_interact_menu_fnc_createAction;
[player, 1, ["ACE_SelfActions", "Anziehsachen"], _actionSpeichernMil] call ace_interact_menu_fnc_addActionToObject;
private _actionSpeichernZivil = ["Speichern Zivil", "Speichern Zivil", "", {["zivil", true] call TB_umziehenFNC}, _condSpeichern] call ace_interact_menu_fnc_createAction;
Expand Down
2 changes: 1 addition & 1 deletion addons/eden/functions/fnc_moduleFrontverlauf.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ if (!is3DEN && {_mode == "init"} && {_isActivated}) then
private _mostFactionColor = 'empty';
private _player = (call CBA_fnc_players) param [0, objNull];
if (!(_list isEqualTo []) && !isNull _player) then
if (_list isNotEqualTo [] && !isNull _player) then
{
";

Expand Down
8 changes: 4 additions & 4 deletions addons/eos/core/fnc_bastionCore.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ for "_i" from 1 to _lvGroups do

private _lvGroup = [_pos, _side, _faction, _vehType, _lockVehicle, _keyVehicle] call FUNC(spawnVehicle);

if !(_lvGroup isEqualTo []) then
if (_lvGroup isNotEqualTo []) then
{
if (_lvSize > 0) then
{
Expand Down Expand Up @@ -217,7 +217,7 @@ for "_i" from 1 to _avGroups do
private _vehType = if (surfaceiswater _pos) then {8} else {2};
private _avGroup = [_pos, _side, _faction, _vehType, _lockVehicle, _keyVehicle] call FUNC(spawnVehicle);

if !(_avGroup isEqualTo []) then {_avZoneGroups pushBack _avGroup};
if (_avGroup isNotEqualTo []) then {_avZoneGroups pushBack _avGroup};
};

uiSleep 1; // TODO: temp solution
Expand All @@ -242,7 +242,7 @@ for "_i" from 1 to _hGroups do
private _vehType = if (_hSize > 0) then {4} else {3};
private _hGroup = [_pos, _side, _faction, _vehType, _lockVehicle, _keyVehicle] call FUNC(spawnVehicle);

if !(_hGroup isEqualTo []) then
if (_hGroup isNotEqualTo []) then
{
if (_hSize > 0) then
{
Expand Down Expand Up @@ -369,7 +369,7 @@ else
if (_waves >= 1) then
{
if (_hints) then {hint "Feindliche Verstärkung ist auf dem Weg"};
// Updates waves in the settings before sending next wave
// Updates waves in the settings before sending next wave
_basSettings set [1, _waves];
[
_mkr,
Expand Down
8 changes: 4 additions & 4 deletions addons/eos/core/fnc_core.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ if (getMarkerColor _mkr != "ColorBlack") then
};

private _lvGroup = [_pos, _side, _faction, _vehType, _lockVehicle, _keyVehicle] call FUNC(spawnVehicle);
if !(_lvGroup isEqualTo []) then
if (_lvGroup isNotEqualTo []) then
{
if (_lvSize > 0) then
{
Expand Down Expand Up @@ -236,7 +236,7 @@ if (getMarkerColor _mkr != "ColorBlack") then
private _vehType = if (surfaceiswater _pos) then {8} else {2};
private _avGroup = [_pos, _side, _faction, _vehType, _lockVehicle, _keyVehicle] call FUNC(spawnVehicle);

if !(_avGroup isEqualTo []) then
if (_avGroup isNotEqualTo []) then
{
[_avGroup select 2, _mkr] call FUNC(shk_patrol);
_avZoneGroups pushBack _avGroup;
Expand Down Expand Up @@ -266,7 +266,7 @@ if (getMarkerColor _mkr != "ColorBlack") then

private _stGroup = [_pos, _side, _faction, 5, _lockVehicle, _keyVehicle] call FUNC(spawnVehicle);

if !(_stGroup isEqualTo []) then {_stZoneGroups pushBack _stGroup};
if (_stGroup isNotEqualTo []) then {_stZoneGroups pushBack _stGroup};
};

uiSleep 1; // TODO: temp solution
Expand All @@ -287,7 +287,7 @@ if (getMarkerColor _mkr != "ColorBlack") then
private _pos = [_mPos, 3000 + ((random 500) - 250), _baseDirHeli + ((random _randomDirHeli) - (_randomDirHeli / 2))] call BIS_fnc_relPos;
private _hGroup = [_pos, _side, _faction, _vehType, _lockVehicle, _keyVehicle] call FUNC(spawnVehicle);

if !(_hGroup isEqualTo []) then
if (_hGroup isNotEqualTo []) then
{
if (_hSize > 0) then
{
Expand Down
10 changes: 5 additions & 5 deletions addons/eos/functions/fnc_findSafePos.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ private _defaultCenterPos = [_defaultMaxDistance, _defaultMaxDistance, 0];
private _fnc_defaultPos =
{
_defaultPos = _defaultPos param [parseNumber _this, []];
if !(_defaultPos isEqualTo []) exitWith {_defaultPos};
if (_defaultPos isNotEqualTo []) exitWith {_defaultPos};

_defaultPos = getArray (configFile >> "CfgWorlds" >> worldName >> "Armory" >> ["positionStart", "positionStartWater"] select _this);
if !(_defaultPos isEqualTo []) exitWith {_defaultPos};
if (_defaultPos isNotEqualTo []) exitWith {_defaultPos};

_defaultPos = getArray (configFile >> "CfgWorlds" >> worldName >> "centerPosition");
if !(_defaultPos isEqualTo []) exitWith {_defaultPos};
if (_defaultPos isNotEqualTo []) exitWith {_defaultPos};

_defaultCenterPos
};
Expand All @@ -101,7 +101,7 @@ if (_maxDistance < 0) then
};

private _checkProximity = _objectProximity > 0;
private _checkBlacklist = !(_posBlacklist isEqualTo []);
private _checkBlacklist = _posBlacklist isNotEqualTo [];

_shoreMode = _shoreMode != 0;

Expand Down Expand Up @@ -144,7 +144,7 @@ for "_i" from 1 to MAX_TRIES do
if (_checkProximity && {!(nearestTerrainObjects [_this, [], _objectProximity, false, true] isEqualTo [])}) exitWith {};

// not inside something
if !(lineIntersectsSurfaces [AGLtoASL _this, AGLtoASL _this vectorAdd [0, 0, 50], objNull, objNull, false, 1, "GEOM", "NONE"] isEqualTo []) exitWith {};
if (lineIntersectsSurfaces [AGLtoASL _this, AGLtoASL _this vectorAdd [0, 0, 50], objNull, objNull, false, 1, "GEOM", "NONE"] isNotEqualTo []) exitWith {};

// not in blacklist
if (_checkBlacklist && {{if (_this inArea _x) exitWith {true}; false} forEach _posBlacklist}) exitWith {};
Expand Down
2 changes: 1 addition & 1 deletion addons/main/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if (isNil QEGVAR(medical,coef)) then {EGVAR(medical,coef) = 1};
private _time = time + 4;

waitUntil {
if !((getPos _projectile) isEqualTo [0,0,0]) then {_pos = getPos _projectile};
if ((getPos _projectile) isNotEqualTo [0,0,0]) then {_pos = getPos _projectile};
TRACE_3("Smoke waitUntil",alive _projectile,_pos,_vehicle distance _projectile);
!alive _projectile
};
Expand Down
4 changes: 2 additions & 2 deletions addons/main/functions/fnc_crashHelferClient.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ if (!GVAR(crashHelfer)) exitWith {};
{!isNil "TB_disconnectCache"},
{
private _find = [TB_disconnectCache, getPlayerUID player] call BIS_fnc_findNestedElement;
if !(_find isEqualTo []) then
if (_find isNotEqualTo []) then
{
(TB_disconnectCache select (_find select 0)) params ["_uid", "_gear", "_pos", "_dir", "_arsenalType", "_rolle", "_group", "_team"];

[player] joinSilent _group;

if !(_rolle isEqualTo "" || _arsenalType isEqualTo "") then {
if (_rolle isNotEqualTo "" && _arsenalType isNotEqualTo "") then {
player setVariable ["TB_arsenalType", _arsenalType, true];
[_rolle, _arsenalType, objNull, false] call EFUNC(arsenal,changeRolle);
};
Expand Down
2 changes: 1 addition & 1 deletion addons/main/functions/fnc_doorBreach.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ player addEventHandler ["FIRED", {
{
private _objs = [cursorObject, "GEOM"] intersect [ASLToAGL (eyePos player), screenToWorld [0.5, 0.5]];

if !(_objs isEqualTo []) then
if (_objs isNotEqualTo []) then
{
(_objs select 0) params ["_door", "_distance"];

Expand Down
6 changes: 3 additions & 3 deletions addons/main/functions/fnc_fastRope.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ switch (_mode) do

if (_group isEqualType objNull) then {_group = group _group};

[_vehicle, "SSS_fastropeUnits", _ropeUnits select {!((group _x) isEqualTo _group)}] call CBA_fnc_setVarNet;
[_vehicle, "SSS_fastropeUnits", _ropeUnits select {(group _x) isNotEqualTo _group}] call CBA_fnc_setVarNet;

systemChat format ["Die Gruppe '%1' wurde vom Abseilen entfernt!", groupId _group];
};
Expand All @@ -94,7 +94,7 @@ switch (_mode) do
private _ropes = _vehicle getVariable [QGVAR(ropes), []];
_ropes = _ropes select {count _x == 3 && alive (_x # 0) && alive (_x # 1) && alive (_x # 2)};

if !(_ropes isEqualTo []) exitWith {true};
if (_ropes isNotEqualTo []) exitWith {true};

private _centerOfMass = getCenterOfMass _vehicle;

Expand Down Expand Up @@ -130,7 +130,7 @@ switch (_mode) do
private _copilots = _copilotTurrets apply {_vehicle turretUnit _x};

(driver _vehicle == _player || currentPilot _vehicle == _player || gunner _vehicle == _player || commander _vehicle == _player && _player in _copilots)
&& !(_ropeUnits isEqualTo []) && _height < 50 && _height > 5 && speed _vehicle < 10
&& _ropeUnits isNotEqualTo [] && _height < 50 && _height > 5 && speed _vehicle < 10
};

case "checkUnits":
Expand Down
2 changes: 1 addition & 1 deletion addons/main/functions/fnc_initFOB.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ params ["_fob"];

// bereits gesetzte löschen
{
if !(_x isEqualTo _fob) then {deleteVehicle _x};
if (_x isNotEqualTo _fob) then {deleteVehicle _x};
} forEach (entities (typeOf _fob));

if (isNil "TB_main_fobs") then {TB_main_fobs = []};
Expand Down
2 changes: 1 addition & 1 deletion addons/menubutton/joinServer.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ onEachFrame format [
{
onEachFrame {};
};
if !(_this isEqualTo '') then
if (_this isNotEqualTo '') then
{
findDisplay %8 displayCtrl %13 lbSetCurSel 0;
onEachFrame
Expand Down
16 changes: 8 additions & 8 deletions addons/nachschub/configs/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class CfgVehicles
{
displayName = "USA";
exceptions[] = {"isNotSwimming", "isNotInside", "notOnMap", "isNotSitting"};
condition = "!((entities [['TB_arsenal_usa', 'TB_arsenal_predefined_custom'], []]) isEqualTo [])";
condition = "(entities [['TB_arsenal_usa', 'TB_arsenal_predefined_custom'], []]) isNotEqualTo []";

ADD_SUPPLY("Notfall",TB_supply_usa_notfall);
ADD_SUPPLY("NachtKiste",TB_supply_usa_night);
Expand Down Expand Up @@ -194,7 +194,7 @@ class CfgVehicles
{
displayName = "UK";
exceptions[] = {"isNotSwimming", "isNotInside", "notOnMap", "isNotSitting"};
condition = "!((entities [['TB_arsenal_uk', 'TB_arsenal_predefined_custom'], []]) isEqualTo [])";
condition = "(entities [['TB_arsenal_uk', 'TB_arsenal_predefined_custom'], []]) isNotEqualTo []";

ADD_SUPPLY("Notfall",TB_supply_uk_notfall);
ADD_SUPPLY("Nacht Kiste",TB_supply_uk_night);
Expand Down Expand Up @@ -241,7 +241,7 @@ class CfgVehicles
{
displayName = "BW";
exceptions[] = {"isNotSwimming", "isNotInside", "notOnMap", "isNotSitting"};
condition = "!((entities [['TB_arsenal_bw', 'TB_arsenal_predefined_custom'], []]) isEqualTo []) && isClass (configFile >> 'CfgPatches' >> 'bwa3_common')";
condition = "(entities [['TB_arsenal_bw', 'TB_arsenal_predefined_custom'], []]) isNotEqualTo [] && isClass (configFile >> 'CfgPatches' >> 'bwa3_common')";

ADD_SUPPLY("Munition",TB_supply_bw_ammo);
ADD_SUPPLY("KleinMunition",TB_supply_bw_ammoSmall);
Expand All @@ -258,7 +258,7 @@ class CfgVehicles
{
displayName = "NATO";
exceptions[] = {"isNotSwimming", "isNotInside", "notOnMap", "isNotSitting"};
condition = "!((entities [['TB_arsenal_vanilla', 'TB_arsenal_predefined_custom'], []]) isEqualTo [])";
condition = "(entities [['TB_arsenal_vanilla', 'TB_arsenal_predefined_custom'], []]) isNotEqualTo []";

ADD_SUPPLY("Munition",TB_supply_nato_ammo);
ADD_SUPPLY("Granaten",TB_supply_nato_grena);
Expand All @@ -272,7 +272,7 @@ class CfgVehicles
{
displayName = "LDF";
exceptions[] = {"isNotSwimming", "isNotInside", "notOnMap", "isNotSitting"};
condition = "!((entities [['TB_arsenal_themen', 'TB_arsenal_predefined_custom'], []]) isEqualTo [])";
condition = "(entities [['TB_arsenal_themen', 'TB_arsenal_predefined_custom'], []]) isNotEqualTo []";

class LDFMunition
{
Expand Down Expand Up @@ -308,7 +308,7 @@ class CfgVehicles
{
displayName = "BRD";
exceptions[] = {"isNotSwimming", "isNotInside", "notOnMap", "isNotSitting"};
condition = "!((entities [['TB_arsenal_themen', 'TB_arsenal_predefined_custom'], []]) isEqualTo [])";
condition = "(entities [['TB_arsenal_themen', 'TB_arsenal_predefined_custom'], []]) isNotEqualTo []";

ADD_SUPPLY("Munition",TB_supply_brd_ammo);
ADD_SUPPLY("Granaten",TB_supply_brd_grena);
Expand All @@ -321,7 +321,7 @@ class CfgVehicles
{
displayName = "SOG";
exceptions[] = {"isNotSwimming", "isNotInside", "notOnMap", "isNotSitting"};
condition = "!((entities [['TB_arsenal_themen', 'TB_arsenal_predefined_custom'], []]) isEqualTo [])";
condition = "(entities [['TB_arsenal_themen', 'TB_arsenal_predefined_custom'], []]) isNotEqualTo []";

ADD_SUPPLY("Munition",TB_supply_sog_ammo);
ADD_SUPPLY("Granaten",TB_supply_sog_grena);
Expand All @@ -338,7 +338,7 @@ class CfgVehicles
{
displayName = "RUSS";
exceptions[] = {"isNotSwimming", "isNotInside", "notOnMap", "isNotSitting"};
condition = "!((entities [['TB_arsenal_russ', 'TB_arsenal_predefined_custom'], []]) isEqualTo [])";
condition = "(entities [['TB_arsenal_russ', 'TB_arsenal_predefined_custom'], []]) isNotEqualTo []";

ADD_SUPPLY("Munition",TB_supply_russ_ammo);
ADD_SUPPLY("KleinMunition",TB_supply_russ_ammoSmall);
Expand Down
2 changes: 1 addition & 1 deletion addons/persistence/functions/fnc_persistenceEDEN.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private _vehicle = nil;
_vehicle set3DENAttribute ["fuel", _fuel];
_vehicle set3DENAttribute ["enableSimulation", _sim];

if !(_dmg isEqualTo []) then
if (_dmg isNotEqualTo []) then
{
_dmg params ["_hitNames", "_dmgValues"];

Expand Down
2 changes: 1 addition & 1 deletion addons/persistence/functions/fnc_persistenceMarkers.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ else // load
private _newMarker = createMarker [_marker, _pos];
_newMarker setMarkerColor _color;
_newMarker setMarkerSize _size;
if !(_type isEqualTo "") then {_newMarker setMarkerType _type};
if (_type isNotEqualTo "") then {_newMarker setMarkerType _type};
_newMarker setMarkerAlpha _alpha;
_newMarker setMarkerBrush _brush;
_newMarker setMarkerDir _dir;
Expand Down
4 changes: 2 additions & 2 deletions addons/persistence/functions/fnc_persistencePlayers.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ else // load

{
private _find = [TB_disconnectCache, getPlayerUID _x] call BIS_fnc_findNestedElement;
if !(_find isEqualTo []) then
if (_find isNotEqualTo []) then
{
(TB_disconnectCache select (_find select 0)) params ["_uid", "_gear", "_pos", "_dir", "_arsenalType", "_rolle", "_group", "_team"];

[_x] joinSilent _group;

if !(_rolle isEqualTo "" || _arsenalType isEqualTo "") then
if (_rolle isNotEqualTo "" && _arsenalType isNotEqualTo "") then
{
_x setVariable ["TB_arsenalType", _arsenalType, true];
[_rolle, _arsenalType, objNull, false] remoteExec [QEFUNC(arsenal,changeRolle), _x];
Expand Down
2 changes: 1 addition & 1 deletion addons/persistence/functions/fnc_persistenceVehicles.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ else // load
}
forEach _aceCargo;

if !(_dmg isEqualTo []) then
if (_dmg isNotEqualTo []) then
{
{
_vehicle setHitPointDamage [_x, (_dmg select 1) select _forEachIndex];
Expand Down
Loading

0 comments on commit 6c870c9

Please sign in to comment.