From 7bb0d1c05227be74f42ae5d96914e1a6760e6f56 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Wed, 16 Oct 2024 14:58:55 -0500 Subject: [PATCH] General - Optimize 3 nots (#10427) --- addons/fcs/functions/fnc_calculateSolution.sqf | 2 +- addons/rearm/functions/fnc_addRearmActions.sqf | 2 +- addons/rearm/functions/fnc_createDummy.sqf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/fcs/functions/fnc_calculateSolution.sqf b/addons/fcs/functions/fnc_calculateSolution.sqf index de9462848d7..7f4fb9b43b0 100644 --- a/addons/fcs/functions/fnc_calculateSolution.sqf +++ b/addons/fcs/functions/fnc_calculateSolution.sqf @@ -30,7 +30,7 @@ private _turretConfig = [configOf _vehicle, _turret] call EFUNC(common,getTurret private _ammo = getText (configFile >> "CfgMagazines" >> _magazine >> "ammo"); private _bulletSimulation = getText (configFile >> "CfgAmmo" >> _ammo >> "simulation"); - if !(_bulletSimulation == "shotMissile") then { + if (_bulletSimulation != "shotMissile") then { private _maxElev = getNumber (_turretConfig >> "maxElev"); private _initSpeed = getNumber (configFile >> "CfgMagazines" >> _magazine >> "initSpeed"); private _airFriction = getNumber (configFile >> "CfgAmmo" >> _ammo >> "airFriction"); diff --git a/addons/rearm/functions/fnc_addRearmActions.sqf b/addons/rearm/functions/fnc_addRearmActions.sqf index 200dd2f2b44..ccce8736adf 100644 --- a/addons/rearm/functions/fnc_addRearmActions.sqf +++ b/addons/rearm/functions/fnc_addRearmActions.sqf @@ -52,7 +52,7 @@ private _vehicleActions = []; if (_magazineHelper isNotEqualTo []) then { private _icon = getText(configOf _vehicle >> "Icon"); - if !((_icon select [0, 1]) == "\") then { + if ((_icon select [0, 1]) != "\") then { _icon = ""; }; if (GVAR(level) == 0) then { diff --git a/addons/rearm/functions/fnc_createDummy.sqf b/addons/rearm/functions/fnc_createDummy.sqf index 45318cd13fe..ccb1aeacbb9 100644 --- a/addons/rearm/functions/fnc_createDummy.sqf +++ b/addons/rearm/functions/fnc_createDummy.sqf @@ -21,7 +21,7 @@ params ["_unit", "_magazineClass"]; private _ammo = getText (configFile >> "CfgMagazines" >> _magazineClass >> "ammo"); private _dummyName = getText (configFile >> "CfgAmmo" >> _ammo >> QGVAR(dummy)); private _dummy = objNull; -if !(_dummyName == "") then { +if (_dummyName != "") then { _dummy = _dummyName createVehicle (position _unit); } else { _dummy = QGVAR(defaultCarriedObject) createVehicle (position _unit);