Fix FunkinSound not resuming after focus

`FunkingSound.onFocus` was checking `_shouldPlay` before resuming,
but this would always be false, causing the sound to not resume
when tabbing out and back into the game.
This commit is contained in:
Mike Welsh
2024-02-16 00:08:33 -08:00
parent 15accdf10f
commit d6b3e2a9cf
+1 -1
View File
@@ -186,7 +186,7 @@ class FunkinSound extends FlxSound implements ICloneable<FunkinSound>
*/
override function onFocus():Void
{
if (!_alreadyPaused && this._shouldPlay)
if (!_alreadyPaused)
{
resume();
}