Update VideoCutscene.hx

This commit is contained in:
Mihai Alexandru
2023-06-26 07:38:21 +03:00
committed by GitHub
parent c6e23d66f7
commit ff2bbcaa90
@@ -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;
}
}