mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
conform isnil checking: overpressure
This commit is contained in:
parent
b5a0908824
commit
84649c8c8d
@ -20,7 +20,7 @@ TRACE_10("firedEH:",_unit, _weapon, _muzzle, _mode, _ammo, _magazine, _projectil
|
||||
|
||||
// Bake variable name and check if the variable exists, call the caching function otherwise
|
||||
private _varName = format [QGVAR(values%1%2%3), _weapon, _ammo, _magazine];
|
||||
private _var = if (isNil _varName) then {
|
||||
private _var = if (isNil "_varName") then {
|
||||
[_weapon, _ammo, _magazine] call FUNC(cacheOverPressureValues);
|
||||
} else {
|
||||
missionNameSpace getVariable _varName;
|
||||
|
@ -20,7 +20,7 @@ TRACE_10("firedEH:",_unit, _weapon, _muzzle, _mode, _ammo, _magazine, _projectil
|
||||
|
||||
// Bake variable name and check if the variable exists, call the caching function otherwise
|
||||
private _varName = format [QGVAR(values%1%2%3), _weapon, _ammo, _magazine];
|
||||
private _var = if (isNil _varName) then {
|
||||
private _var = if (isNil "_varName") then {
|
||||
[_weapon, _ammo, _magazine] call FUNC(cacheOverPressureValues);
|
||||
} else {
|
||||
missionNameSpace getVariable _varName;
|
||||
|
@ -25,7 +25,7 @@ params ["_firer", "_posASL", "_direction", "_weapon", "_magazine", "_ammo"];
|
||||
|
||||
// Bake variable name and check if the variable exists, call the caching function otherwise
|
||||
private _varName = format [QGVAR(values%1%2%3), _weapon, _ammo, _magazine];
|
||||
private _var = if (isNil _varName) then {
|
||||
private _var = if (isNil "_varName") then {
|
||||
[_weapon, _ammo, _magazine] call FUNC(cacheOverPressureValues);
|
||||
} else {
|
||||
missionNameSpace getVariable _varName;
|
||||
|
Loading…
Reference in New Issue
Block a user