Skip to content

Commit

Permalink
bugfix (f16 chaff/flare)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgkid3310 committed Sep 17, 2019
1 parent 49bcecf commit e8f2e7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/gpws/functions/fnc_f16ChaffFlare.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private _weaponCMarray = _nextCMcountArray select {_x select 0 == _weapon};
private _nextCMarray = [[_weapon, _mode, _CMammoCount, _CMammoCount], _weaponCMarray select 0] select (count _weaponCMarray > 0);
_nextCMarray params ["_weaponOld", "_modeOld", "_nextCMcount", "_CMammoCountOld"];

private _fullMagAmmo = getNumber (configFile >> "CfgMagazines" >> _magazine >> "count");
private _fullMagAmmo = getNumber (configFile >> "CfgMagazines" >> (_weaponState select 3) >> "count");
if (!(_CMammoCount < _CMammoCountOld) && (_CMammoCount <= _fullMagAmmo)) then {_nextCMcount = _CMammoCount};
if ((_modeOld == _mode) && (_nextCMcount < _CMammoCount)) exitWith {};

Expand Down

0 comments on commit e8f2e7c

Please sign in to comment.