Skip to content

Commit

Permalink
Hearing - prevent audio from stacking when tabbed out (#10048)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored May 30, 2024
1 parent 98f4b51 commit d30c01a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/hearing/functions/fnc_updateVolume.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d30c01a

Please sign in to comment.