mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-12-03 21:01:30 -05:00
fixed bugs where game would crash if pressing R during cutscene or state transition
This commit is contained in:
parent
720ae5d3cc
commit
0370f77dfe
1 changed files with 38 additions and 35 deletions
|
@ -941,7 +941,7 @@ class PlayState extends MusicBeatState
|
|||
});
|
||||
}
|
||||
|
||||
var startTimer:FlxTimer;
|
||||
var startTimer:FlxTimer = new FlxTimer();
|
||||
var perfectMode:Bool = false;
|
||||
|
||||
function startCountdown():Void
|
||||
|
@ -958,7 +958,7 @@ class PlayState extends MusicBeatState
|
|||
|
||||
var swagCounter:Int = 0;
|
||||
|
||||
startTimer = new FlxTimer().start(Conductor.crochet / 1000, function(tmr:FlxTimer)
|
||||
startTimer.start(Conductor.crochet / 1000, function(tmr:FlxTimer)
|
||||
{
|
||||
// this just based on beatHit stuff but compact
|
||||
if (swagCounter % gfSpeed == 0)
|
||||
|
@ -1563,6 +1563,8 @@ class PlayState extends MusicBeatState
|
|||
}
|
||||
// better streaming of shit
|
||||
|
||||
if (!inCutscene && !_exiting)
|
||||
{
|
||||
// RESET = Quick Game Over Screen
|
||||
if (controls.RESET)
|
||||
{
|
||||
|
@ -1600,6 +1602,7 @@ class PlayState extends MusicBeatState
|
|||
DiscordClient.changePresence("Game Over - " + detailsText, SONG.song + " (" + storyDifficultyText + ")", iconRPC);
|
||||
#end
|
||||
}
|
||||
}
|
||||
|
||||
if (unspawnNotes[0] != null)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue