Skip to content

Commit

Permalink
it wasn't strong enough
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatRozebudDude committed Jan 30, 2025
1 parent 647121c commit 0ee6c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1569,7 +1569,7 @@ class PlayState extends MusicBeatState
if(previousReportedSongTime != FlxG.sound.music.time){
Conductor.songPosition = FlxG.sound.music.time;
//Failsafe to make sure that the onComplete actually runs because sometimes it would just not run sometimes when I was doing stuff with the song playback speed.
if(inRange(previousReportedSongTime, FlxG.sound.music.length, 1000) && Conductor.songPosition < FlxG.sound.music.length/2 && !songEnded){ FlxG.sound.music.onComplete(); }
if(inRange(previousReportedSongTime, FlxG.sound.music.length, 1000) && !inRange(Conductor.songPosition, FlxG.sound.music.length, 1000) && !songEnded){ FlxG.sound.music.onComplete(); }
previousReportedSongTime = FlxG.sound.music.time;
}
else{
Expand Down

0 comments on commit 0ee6c2d

Please sign in to comment.