Skip to content

Commit

Permalink
Playback speed not being used fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasercar committed Feb 19, 2025
1 parent de02137 commit 8fef945
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/funkin/play/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -915,8 +915,9 @@ class PlayState extends MusicBeatSubState
{
Conductor.instance.formatOffset = 0.0;
}

Conductor.instance.update(Conductor.instance.songPosition + elapsed * 1000, false); // Normal conductor update.
// Pass the music time instead if the pitch is different, aka, the song is lower or faster
Conductor.instance.update((FlxG.sound.music.pitch != 1) ? FlxG.sound.music.time + elapsed * 1000 : (Conductor.instance.songPosition + elapsed * 1000),
false); // Normal conductor update.
}

var androidPause:Bool = false;
Expand Down

0 comments on commit 8fef945

Please sign in to comment.