Merge pull request #1835 from jonpas/disableEarRingingOnTheFly

Exit Ear Ringing PFH when disabled during ringing
This commit is contained in:
SilentSpike 2015-07-10 22:08:53 +01:00
commit 97f3ec4f65

View File

@ -45,7 +45,7 @@ GVAR(earRingingPFH) = [{
private ["_prior"];
_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(prior), 0];
GVAR(beep) = false;