Skip to content

Commit

Permalink
Update PlayState.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackx2 committed Apr 10, 2024
1 parent 5eb616a commit bcd772b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/game/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2597,11 +2597,10 @@ class PlayState extends MusicBeatState
previousFrameTime = FlxG.game.ticks;
lastReportedPlayheadPosition = 0;

@:privateAccess
FlxG.sound.playMusic(inst._sound, 1, false);
#if FLX_PITCH FlxG.sound.music.pitch = playbackRate; #end
FlxG.sound.playMusic(backend.utils.Paths.inst(PlayState.SONG.song), 1, false);
FlxG.sound.music.pitch = playbackRate;
FlxG.sound.music.onComplete = finishSong.bind();
vocals.play();

vocals.play();

if(startOnTime > 0)
Expand Down

0 comments on commit bcd772b

Please sign in to comment.