Exit Ear Rining PFH when disabled during ringing

This commit is contained in:
jonpas 2015-07-10 22:52:04 +02:00
parent c0c07b3ada
commit 4826fd5c1c

View File

@ -45,7 +45,7 @@ GVAR(earRingingPFH) = [{
private ["_prior"]; private ["_prior"];
_prior = (_unit getvariable [QGVAR(dv), 0]) min 20; _prior = (_unit getvariable [QGVAR(dv), 0]) min 20;
if (!alive _unit || _prior <= 0) exitWith { if (!alive _unit || _prior <= 0 || GVAR(DisableEarRinging)) exitWith {
_unit setVariable [QGVAR(dv), 0]; _unit setVariable [QGVAR(dv), 0];
_unit setVariable [QGVAR(prior), 0]; _unit setVariable [QGVAR(prior), 0];
GVAR(beep) = false; GVAR(beep) = false;