diff --git a/source/PlayState.hx b/source/PlayState.hx index ba06ca6..71d1570 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -372,6 +372,8 @@ class PlayState extends MusicBeatState // String for when the game is paused detailsPausedText = "Paused - " + detailsText; + curStage = ""; + // Updating Discord Rich Presence. DiscordClient.changePresence(detailsText + " " @@ -1136,7 +1138,7 @@ class PlayState extends MusicBeatState add(songPosBG); songPosBar = new FlxBar(songPosBG.x + 4, songPosBG.y + 4, LEFT_TO_RIGHT, Std.int(songPosBG.width - 8), Std.int(songPosBG.height - 8), this, - 'songPositionBar', 0, 90000); + 'songPositionBar', 0, songLength); songPosBar.scrollFactor.set(); songPosBar.createFilledBar(FlxColor.GRAY, FlxColor.LIME); add(songPosBar);