bugfix of the freezing conductor

when pausing right on the frame the countdown ends
This commit is contained in:
⍚~Nex
2025-04-07 17:26:16 +02:00
parent c7c2794e84
commit 96108634b4
+3 -3
View File
@@ -1256,9 +1256,6 @@ class PlayState extends MusicBeatState
updateRatingStuff();
if (controls.PAUSE && startedCountdown && canPause)
pauseGame();
if (canAccessDebugMenus) {
if (chartingMode && FlxG.keys.justPressed.SEVEN) {
FlxG.switchState(new funkin.editors.charter.Charter(SONG.meta.name, difficulty, false));
@@ -1300,6 +1297,9 @@ class PlayState extends MusicBeatState
while(events.length > 0 && events.last().time <= Conductor.songPosition)
executeEvent(events.pop());
if (controls.PAUSE && startedCountdown && canPause)
pauseGame();
if (generatedMusic && strumLines.members[curCameraTarget] != null)
{
var pos = FlxPoint.get();