Skip to content

Commit aaefc8b

Browse files
committed
Playback speed not being used fix
1 parent 8f2a8c8 commit aaefc8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/funkin/play/PlayState.hx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,9 @@ class PlayState extends MusicBeatSubState
937937
Conductor.instance.formatOffset = 0.0;
938938
}
939939

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

942944
// If, after updating the conductor, the instrumental has finished, end the song immediately.
943945
// This helps prevent a major bug where the level suddenly loops back to the start or middle.

0 commit comments

Comments
 (0)