Skip to content

Commit

Permalink
Hearing - Fix deafness reducing when game is paused (acemod#10039)
Browse files Browse the repository at this point in the history
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
  • Loading branch information
2 people authored and blake8090 committed Aug 18, 2024
1 parent a59cccc commit 861a18e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/hearing/functions/fnc_updateVolume.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* Public: No
*/

if (isGamePaused) exitWith {};

if (!alive ACE_player) exitWith {
if (missionNamespace getVariable [QGVAR(disableVolumeUpdate), false]) exitWith {};

Expand All @@ -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 {
Expand Down

0 comments on commit 861a18e

Please sign in to comment.