fix preloaded versions
This commit is contained in:
@ -152,7 +152,7 @@ class LoadingState extends MusicBeatState
|
||||
static function getNextState(target:FlxState, stopMusic = false):FlxState
|
||||
{
|
||||
Paths.setCurrentLevel("week" + PlayState.storyWeek);
|
||||
#if js
|
||||
#if NO_PRELOAD_ALL
|
||||
var loaded = isSoundLoaded(getSongPath())
|
||||
&& (!PlayState.SONG.needsVoices || isSoundLoaded(getVocalPath()))
|
||||
&& isLibraryLoaded("shared");
|
||||
@ -166,7 +166,7 @@ class LoadingState extends MusicBeatState
|
||||
return target;
|
||||
}
|
||||
|
||||
#if js
|
||||
#if NO_PRELOAD_ALL
|
||||
static function isSoundLoaded(path:String):Bool
|
||||
{
|
||||
return Assets.cache.hasSound(path);
|
||||
|
Reference in New Issue
Block a user