1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-05 14:24:28 +00:00

Merge pull request #457 from FunkinCrew/html5/touch-to-start

Fix some build issues with HTML5.
This commit is contained in:
Cameron Taylor 2024-04-03 03:37:41 -04:00 committed by GitHub
commit 668f47f761
2 changed files with 3 additions and 6 deletions

View file

@ -171,10 +171,7 @@ class LatencyState extends MusicBeatSubState
trace(FlxG.sound.music._channel.position);
*/
#if FLX_DEBUG
funnyStatsGraph.update(FlxG.sound.music.time % 500);
realStats.update(swagSong.getTimeWithDiff() % 500);
#end
localConductor.update(swagSong.time, false);
if (FlxG.keys.justPressed.S)
{

View file

@ -222,7 +222,7 @@ class LoadingState extends MusicBeatSubState
#if NO_PRELOAD_ALL
// 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);
@:privateAccess
result.asSubState = asSubState;
@ -230,7 +230,7 @@ class LoadingState extends MusicBeatSubState
}
if (asSubState)
{
FlxG.state.openSubState(loadStateCtor);
FlxG.state.openSubState(cast loadStateCtor());
}
else
{