mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-11-29 15:56:06 +00:00
Fix some build issues with HTML5.
This commit is contained in:
parent
657172ab56
commit
f7ff381bc7
|
|
@ -171,10 +171,7 @@ class LatencyState extends MusicBeatSubState
|
||||||
trace(FlxG.sound.music._channel.position);
|
trace(FlxG.sound.music._channel.position);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if FLX_DEBUG
|
localConductor.update(swagSong.time, false);
|
||||||
funnyStatsGraph.update(FlxG.sound.music.time % 500);
|
|
||||||
realStats.update(swagSong.getTimeWithDiff() % 500);
|
|
||||||
#end
|
|
||||||
|
|
||||||
if (FlxG.keys.justPressed.S)
|
if (FlxG.keys.justPressed.S)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -222,7 +222,7 @@ class LoadingState extends MusicBeatSubState
|
||||||
|
|
||||||
#if NO_PRELOAD_ALL
|
#if NO_PRELOAD_ALL
|
||||||
// Switch to loading state while we load assets (default on HTML5 target).
|
// Switch to loading state while we load assets (default on HTML5 target).
|
||||||
var loadStateCtor:NextState = function() {
|
var loadStateCtor = function() {
|
||||||
var result = new LoadingState(playStateCtor, shouldStopMusic, params);
|
var result = new LoadingState(playStateCtor, shouldStopMusic, params);
|
||||||
@:privateAccess
|
@:privateAccess
|
||||||
result.asSubState = asSubState;
|
result.asSubState = asSubState;
|
||||||
|
|
@ -230,7 +230,7 @@ class LoadingState extends MusicBeatSubState
|
||||||
}
|
}
|
||||||
if (asSubState)
|
if (asSubState)
|
||||||
{
|
{
|
||||||
FlxG.state.openSubState(loadStateCtor);
|
FlxG.state.openSubState(cast loadStateCtor());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue