Hearing - prevent audio from stacking when tabbed out (#10048)

This commit is contained in:
PabstMirror 2024-05-30 03:34:19 -05:00 committed by GitHub
parent 98f4b51c52
commit d30c01aee9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,6 +38,7 @@ if (!_updateVolumeOnly) then {
GVAR(deafnessDV) > 10) then {
if (CBA_missionTime - GVAR(time3) < 3) exitWith {};
if (!isGameFocused) exitWith {}; // prevent audio from stacking when tabbed out
GVAR(time3) = CBA_missionTime;