Hearing - Fix deafness reducing when game is paused (#10039)

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
This commit is contained in:
johnb432 2024-05-29 20:55:17 +02:00 committed by GitHub
parent d9a2aa01a4
commit 98f4b51c52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,6 +15,8 @@
* Public: No
*/
if (isGamePaused) exitWith {};
if (!alive ACE_player) exitWith {
if (missionNamespace getVariable [QGVAR(disableVolumeUpdate), false]) exitWith {};
@ -39,8 +41,6 @@ if (!_updateVolumeOnly) then {
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 {