Skip to content

Commit

Permalink
General - Optimize 3 nots (acemod#10427)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored Oct 16, 2024
1 parent 3f7ba60 commit 7bb0d1c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addons/fcs/functions/fnc_calculateSolution.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion addons/rearm/functions/fnc_addRearmActions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion addons/rearm/functions/fnc_createDummy.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7bb0d1c

Please sign in to comment.