Skip to content

Commit

Permalink
Some Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
poec987 committed Sep 14, 2024
1 parent 4a1c517 commit c502499
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2362,8 +2362,8 @@ class PlayState extends MusicBeatState
}

public static function checkForCutscene(vidName:String, nextState:flixel.FlxState) {
var files:Array<String> = sys.FileSystem.readDirectory('assets/data/'+SONG.song.toLowerCase().trim());

FlxG.sound.music.stop();
if (FileSystem.exists(Paths.video(vidName))) {
VideoCutsceneState.videoFile = vidName.trim();
VideoCutsceneState.targetState = nextState;
Expand Down
2 changes: 1 addition & 1 deletion source/StoryMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class StoryMenuState extends MusicBeatState
PlayState.campaignScore = 0;
new FlxTimer().start(1, function(tmr:FlxTimer)
{
LoadingState.loadAndSwitchState(new PlayState(), true);
PlayState.checkForCutscene(PlayState.storyPlaylist[0].toLowerCase(), new PlayState());
});
}
}
Expand Down
2 changes: 0 additions & 2 deletions source/VideoCutsceneState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ class VideoCutsceneState extends MusicBeatState {
public override function create() {
super.create();

FlxG.sound.music.stop();

startVideo(videoFile);
}

Expand Down

0 comments on commit c502499

Please sign in to comment.