From 4826fd5c1cf8150081057805bfc937af0b3a24d7 Mon Sep 17 00:00:00 2001 From: jonpas Date: Fri, 10 Jul 2015 22:52:04 +0200 Subject: [PATCH] Exit Ear Rining PFH when disabled during ringing --- addons/hearing/functions/fnc_earRinging.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hearing/functions/fnc_earRinging.sqf b/addons/hearing/functions/fnc_earRinging.sqf index 74e2768c4c..ce85ac2a22 100644 --- a/addons/hearing/functions/fnc_earRinging.sqf +++ b/addons/hearing/functions/fnc_earRinging.sqf @@ -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;