Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Commit

Permalink
i fucking hate week 6
Browse files Browse the repository at this point in the history
  • Loading branch information
RadiantCorium committed Aug 28, 2022
1 parent f2a33aa commit 81cf4f5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion source/states/gameplay/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ class PlayState extends MusicBeatState

public var publicStageObjs:FlxTypedGroup<FlxSprite>;

var preloadSong = true;

override public function create()
{
if (FlxG.sound.music != null)
Expand Down Expand Up @@ -943,6 +945,9 @@ class PlayState extends MusicBeatState

function schoolIntro(?dialogueBox:DialogueBox):Void
{
// dialogue sucks :(
preloadSong = false;

var black:FlxSprite = new FlxSprite(-100, -100).makeGraphic(FlxG.width * 2, FlxG.height * 2, FlxColor.BLACK);
black.scrollFactor.set();
add(black);
Expand Down Expand Up @@ -1145,7 +1150,13 @@ class PlayState extends MusicBeatState

if (!paused)
{
FlxG.sound.music.play(true, startFrom);
// aaaaaa
if (preloadSong)
FlxG.sound.music.play(true, startFrom);
else
{
FlxG.sound.playMusic(Modding.inst(mod + ":" + SONG.song));
}

/*
if (FileSystem.exists(Paths.inst(PlayState.SONG.song)))
Expand Down

0 comments on commit 81cf4f5

Please sign in to comment.