X Tutup
Skip to content

Commit 5ca3c6a

Browse files
Check if cutscene was already skipped before trying to skip
1 parent a66eb04 commit 5ca3c6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

preload/scripts/songs/eggnog-erect.hxc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ class EggnogErectSong extends Song
185185

186186
if (PlayState.instance.isInCutscene)
187187
{
188-
if ((PlayState.instance.controls.CUTSCENE_ADVANCE || isMobilePauseButtonPressed) && cutsceneSkipped == false)
188+
if ((PlayState.instance.controls.CUTSCENE_ADVANCE || isMobilePauseButtonPressed) && !cutsceneSkipped)
189189
{
190-
if (canSkipCutscene == false)
190+
if (!canSkipCutscene)
191191
{
192192
trace('cant skip yet!');
193193
FlxTween.tween(skipText, {alpha: 1}, 0.5, {ease: FlxEase.quadOut});
@@ -199,7 +199,7 @@ class EggnogErectSong extends Song
199199
}
200200
}
201201

202-
if ((PlayState.instance.controls.CUTSCENE_ADVANCE || isMobilePauseButtonPressed) && canSkipCutscene)
202+
if ((PlayState.instance.controls.CUTSCENE_ADVANCE || isMobilePauseButtonPressed) && canSkipCutscene && !cutsceneSkipped)
203203
{
204204
PlayState.instance.camCutscene.fade(0xFF000000, 0.5, false, null, true);
205205
FlxTween.tween(skipText, {alpha: 0}, 0.5, {ease: FlxEase.quadOut});

0 commit comments

Comments
 (0)
X Tutup