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] 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 +}