Fix airburst ammo when the ACE_FCS is not enabled (the code is not reached anyway)

This commit is contained in:
esteldunedain 2016-03-08 00:28:44 -03:00 committed by ulteq
parent 9641d306e6
commit 4df561e13a

View File

@ -64,7 +64,7 @@ if (vectorMagnitude velocity _vehicle > 2) then {
if (!local _gunner) exitWith {};
if (getNumber (configFile >> "CfgAmmo" >> _ammo >> QGVAR(Airburst)) == 1) then {
private _zeroing = _vehicle getVariable [format ["%1_%2", QGVAR(Distance), _turret], currentZeroing _vehicle];
private _zeroing = _vehicle getVariable [format ["%1_%2", QGVAR(Distance), _turret], currentZeroing _gunner];
if (_zeroing < 50) exitWith {};
if (_zeroing > 1500) exitWith {};