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:
@@ -186,7 +186,7 @@ class FunkinSound extends FlxSound implements ICloneable<FunkinSound>
|
||||
*/
|
||||
override function onFocus():Void
|
||||
{
|
||||
if (!_alreadyPaused && this._shouldPlay)
|
||||
if (!_alreadyPaused)
|
||||
{
|
||||
resume();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user