From 5d5e426852e510f05eb536c7d710fcf74982b411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=8D=9A=7ENex?= <87421482+NexIsDumb@users.noreply.github.com> Date: Thu, 23 Jan 2025 00:53:04 +0100 Subject: [PATCH] actually --- source/funkin/game/cutscenes/Cutscene.hx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/funkin/game/cutscenes/Cutscene.hx b/source/funkin/game/cutscenes/Cutscene.hx index 1a403dd8..9845e916 100644 --- a/source/funkin/game/cutscenes/Cutscene.hx +++ b/source/funkin/game/cutscenes/Cutscene.hx @@ -25,11 +25,8 @@ class Cutscene extends MusicBeatSubstate { super(); canOpenCustomTransition = true; + __callback = callback; __pausable = allowPause; - __callback = function() { - canOpenCustomTransition = false; - callback(); - }; pauseItems = Flags.DEFAULT_CUTSCENE_PAUSE_ITEMS; skippable = canSkip; @@ -78,6 +75,7 @@ class Cutscene extends MusicBeatSubstate { } public override function close() { + canOpenCustomTransition = false; __callback(); super.close(); }