avoid increasing volume on focus if it was 0

This commit is contained in:
Ahmed7p39
2026-07-04 16:49:47 +08:00
committed by Hundrec
parent 0001be960d
commit 18f5e25496
+1 -1
View File
@@ -340,7 +340,7 @@ class InitState extends FlxState
#end
#if FEATURE_LOST_FOCUS_VOLUME
if (FlxG.sound.muted || FlxG.autoPause) return;
if (FlxG.sound.muted || FlxG.sound.volume == 0 || FlxG.autoPause) return;
if (_lastFocusVolume != null) FlxG.sound.volume = _lastFocusVolume;
#end
}