From 9245b73b4d44ff35759bca0db6c06951b3c25296 Mon Sep 17 00:00:00 2001 From: johnb432 <58661205+johnb432@users.noreply.github.com> Date: Tue, 28 May 2024 21:26:56 +0200 Subject: [PATCH] Update fnc_updateVolume.sqf --- addons/hearing/functions/fnc_updateVolume.sqf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/hearing/functions/fnc_updateVolume.sqf b/addons/hearing/functions/fnc_updateVolume.sqf index 0029cdc4de2..f3ba74c389e 100644 --- a/addons/hearing/functions/fnc_updateVolume.sqf +++ b/addons/hearing/functions/fnc_updateVolume.sqf @@ -16,6 +16,8 @@ * Public: No */ +if (isGamePaused) exitWith {}; + if (!alive ACE_player) exitWith { if (missionNameSpace getVariable [QGVAR(disableVolumeUpdate), false]) exitWith {}; TRACE_1("dead - removing hearing effects",ACE_player); @@ -36,7 +38,6 @@ if (!_justUpdateVolume) then { if (CBA_missionTime - GVAR(time3) < 3) exitWith {}; GVAR(time3) = CBA_missionTime; - if (!isGameFocused) exitWith {}; if (GVAR(deafnessDV) > 19.75) then { playSound (["ACE_Combat_Deafness_Heavy", "ACE_Combat_Deafness_Heavy_NoRing"] select GVAR(DisableEarRinging)); } else {