avoid increasing volume on focus if it was 0
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user