mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-12 08:25:13 +00:00
Merge pull request #424 from FunkinCrew/bugfix/pico-fixes
Fix some issues with Week 3
This commit is contained in:
commit
2c7fb62f72
2
assets
2
assets
|
@ -1 +1 @@
|
|||
Subproject commit 8013845e331015b40c4cc35230f6d02bd2148d52
|
||||
Subproject commit 485243fdd44acbc4db6a97ec7bf10a8b18350be9
|
|
@ -51,6 +51,11 @@ class FunkinSound extends FlxSound implements ICloneable<FunkinSound>
|
|||
*/
|
||||
static var pool(default, null):FlxTypedGroup<FunkinSound> = new FlxTypedGroup<FunkinSound>();
|
||||
|
||||
/**
|
||||
* Calculate the current time of the sound.
|
||||
* NOTE: You need to `add()` the sound to the scene for `update()` to increment the time.
|
||||
*/
|
||||
//
|
||||
public var muted(default, set):Bool = false;
|
||||
|
||||
function set_muted(value:Bool):Bool
|
||||
|
@ -394,8 +399,6 @@ class FunkinSound extends FlxSound implements ICloneable<FunkinSound>
|
|||
// Call onLoad() because the sound already loaded
|
||||
if (onLoad != null && sound._sound != null) onLoad();
|
||||
|
||||
FlxG.sound.list.remove(FlxG.sound.music);
|
||||
|
||||
return sound;
|
||||
}
|
||||
|
||||
|
|
|
@ -2944,10 +2944,7 @@ class PlayState extends MusicBeatSubState
|
|||
if (overrideMusic)
|
||||
{
|
||||
// Stop the music. Do NOT destroy it, something still references it!
|
||||
if (FlxG.sound.music != null)
|
||||
{
|
||||
FlxG.sound.music.pause();
|
||||
}
|
||||
if (FlxG.sound.music != null) FlxG.sound.music.pause();
|
||||
if (vocals != null)
|
||||
{
|
||||
vocals.pause();
|
||||
|
@ -2957,10 +2954,7 @@ class PlayState extends MusicBeatSubState
|
|||
else
|
||||
{
|
||||
// Stop and destroy the music.
|
||||
if (FlxG.sound.music != null)
|
||||
{
|
||||
FlxG.sound.music.pause();
|
||||
}
|
||||
if (FlxG.sound.music != null) FlxG.sound.music.pause();
|
||||
if (vocals != null)
|
||||
{
|
||||
vocals.destroy();
|
||||
|
|
Loading…
Reference in a new issue