Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
fixed video cutscene softlock
Browse files Browse the repository at this point in the history
  • Loading branch information
Leather128 committed Dec 13, 2021
1 parent 7fdba4d commit d8d1817
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ class PlayState extends MusicBeatState
switch(cutscene.type.toLowerCase())
{
case "video":
startVideo(cutscene.videoPath, cutscene.videoExt);
startVideo(cutscene.videoPath, cutscene.videoExt, false);

case "dialogue":
var box:DialogueBox = new DialogueBox(cutscene);
Expand Down Expand Up @@ -880,13 +880,6 @@ class PlayState extends MusicBeatState
}

public function startVideo(name:String, ?ext:String, ?endSongVar:Bool = false):Void {
if(endSongVar)
{
paused = true;
canPause = false;
switchedStates = true;
}

#if BIT_64
#if VIDEOS_ALLOWED
var foundFile:Bool = false;
Expand Down Expand Up @@ -920,7 +913,7 @@ class PlayState extends MusicBeatState
remove(bg);

if(endingSong) {
endSong();
openSubState(new ResultsScreenSubstate());
} else {
if(cutscene.cutsceneAfter == null)
{
Expand Down Expand Up @@ -964,7 +957,7 @@ class PlayState extends MusicBeatState
#end

if(endingSong) {
endSong();
openSubState(new ResultsScreenSubstate());
} else { #end
if(!endSongVar)
startCountdown();
Expand Down

0 comments on commit d8d1817

Please sign in to comment.