From 3dfaaa29f460923cc51b6db6cff04786321011be Mon Sep 17 00:00:00 2001 From: Leather128 <81660872+Leather128@users.noreply.github.com> Date: Sun, 12 Dec 2021 21:52:05 -0500 Subject: [PATCH] ok fixed weird startVideo() bug? --- source/states/PlayState.hx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/states/PlayState.hx b/source/states/PlayState.hx index be7b5b2a01..7a2903b139 100644 --- a/source/states/PlayState.hx +++ b/source/states/PlayState.hx @@ -882,6 +882,13 @@ class PlayState extends MusicBeatState public function startVideo(name:String, ?ext:String, ?endSongVar:Bool = false):Void { #if BIT_64 #if VIDEOS_ALLOWED + if(endSongVar) + { + paused = true; + canPause = false; + switchedStates = true; + } + var foundFile:Bool = false; var fileName:String = #if sys Sys.getCwd() + PolymodAssets.getPath(Paths.video(name, ext)) #else Paths.video(name, ext) #end;