mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fixed a bug in the caching routine
This commit is contained in:
parent
3427f655b9
commit
022f9286e2
@ -48,7 +48,7 @@ if (_silencer != "") then {
|
|||||||
_audibleFireCoef = getNumber (configFile >> "CfgWeapons" >> _silencer >> "ItemInfo" >> "AmmoCoef" >> "audibleFire");
|
_audibleFireCoef = getNumber (configFile >> "CfgWeapons" >> _silencer >> "ItemInfo" >> "AmmoCoef" >> "audibleFire");
|
||||||
};
|
};
|
||||||
|
|
||||||
_weaponMagazines = missionNamespace getVariable [QEGVAR(common,weaponMagazines), []];
|
_weaponMagazines = missionNamespace getVariable [format[QEGVAR(common,weaponMagazines_%1),_weapon], []];
|
||||||
if (count _weaponMagazines == 0) then {
|
if (count _weaponMagazines == 0) then {
|
||||||
_muzzles = getArray (configFile >> "CfgWeapons" >> _weapon >> "muzzles");
|
_muzzles = getArray (configFile >> "CfgWeapons" >> _weapon >> "muzzles");
|
||||||
_weaponMagazines = getArray (configFile >> "CfgWeapons" >> _weapon >> "magazines");
|
_weaponMagazines = getArray (configFile >> "CfgWeapons" >> _weapon >> "magazines");
|
||||||
@ -58,7 +58,7 @@ if (count _weaponMagazines == 0) then {
|
|||||||
_weaponMagazines append _muzzleMagazines;
|
_weaponMagazines append _muzzleMagazines;
|
||||||
};
|
};
|
||||||
} forEach _muzzles;
|
} forEach _muzzles;
|
||||||
missionNamespace setVariable [QEGVAR(common,weaponMagazines), _weaponMagazines];
|
missionNamespace setVariable [format[QEGVAR(common,weaponMagazines_%1),_weapon], _weaponMagazines];
|
||||||
};
|
};
|
||||||
|
|
||||||
_magazine = "";
|
_magazine = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user