mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-20 13:53:13 +00:00
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:
parent
15accdf10f
commit
d6b3e2a9cf
|
@ -186,7 +186,7 @@ class FunkinSound extends FlxSound implements ICloneable<FunkinSound>
|
||||||
*/
|
*/
|
||||||
override function onFocus():Void
|
override function onFocus():Void
|
||||||
{
|
{
|
||||||
if (!_alreadyPaused && this._shouldPlay)
|
if (!_alreadyPaused)
|
||||||
{
|
{
|
||||||
resume();
|
resume();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue