From ff2bbcaa9097ee5d6d7ebd1adaed687c170a72d3 Mon Sep 17 00:00:00 2001 From: Mihai Alexandru <77043862+MAJigsaw77@users.noreply.github.com> Date: Mon, 26 Jun 2023 07:38:21 +0300 Subject: [PATCH 1/2] Update VideoCutscene.hx --- source/funkin/game/cutscenes/VideoCutscene.hx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/funkin/game/cutscenes/VideoCutscene.hx b/source/funkin/game/cutscenes/VideoCutscene.hx index 18be35fc..54bafdd4 100644 --- a/source/funkin/game/cutscenes/VideoCutscene.hx +++ b/source/funkin/game/cutscenes/VideoCutscene.hx @@ -173,9 +173,7 @@ class VideoCutscene extends Cutscene { loadingBackdrop.x -= elapsed * FlxG.width * 0.5; } if (skippable && video.isPlaying && controls.ACCEPT) { - video.stop(); - video.dispose(); - close(); + video.onEndReached.dispatch(); } #else close(); @@ -203,4 +201,4 @@ typedef CutsceneSubtitle = { var time:Float; // time in ms var subtitle:String; // subtitle text var color:FlxColor; -} \ No newline at end of file +} From 13c045da5611692e28319608128d24ab137f9005 Mon Sep 17 00:00:00 2001 From: Mihai Alexandru <77043862+MAJigsaw77@users.noreply.github.com> Date: Mon, 26 Jun 2023 15:26:49 +0300 Subject: [PATCH 2/2] Reorder --- source/funkin/game/cutscenes/VideoCutscene.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/game/cutscenes/VideoCutscene.hx b/source/funkin/game/cutscenes/VideoCutscene.hx index 54bafdd4..2bf8ff90 100644 --- a/source/funkin/game/cutscenes/VideoCutscene.hx +++ b/source/funkin/game/cutscenes/VideoCutscene.hx @@ -53,8 +53,8 @@ class VideoCutscene extends Cutscene { parseSubtitles(); video = new FlxVideo(); - video.onEndReached.add(close); video.onEndReached.add(video.dispose); + video.onEndReached.add(close); bg = new FlxSprite(0, FlxG.height * 0.85).makeGraphic(1, 1, 0xFF000000); bg.alpha = 0.5;