Update game.py

This commit is contained in:
Anthony Samms
2025-12-23 10:32:31 -05:00
parent af227e0303
commit 6ff528d0eb

View File

@@ -443,8 +443,13 @@ class Player:
self.bpm = 120 self.bpm = 120
if self.timeline and hasattr(self.timeline[self.timeline_index], 'bpm'): if self.timeline and hasattr(self.timeline[self.timeline_index], 'bpm'):
self.bpm = self.timeline[self.timeline_index].bpm self.bpm = self.timeline[self.timeline_index].bpm
last_note = self.draw_note_list[0]
for note in chain(self.draw_note_list, self.draw_bar_list): for note in chain(self.draw_note_list, self.draw_bar_list):
self.get_load_time(note) self.get_load_time(note)
if note.type == NoteType.TAIL:
note.load_ms = last_note.load_ms
note.unload_ms = last_note.unload_ms
last_note = note
self.draw_note_list = deque(sorted(self.draw_note_list, key=lambda n: n.load_ms)) self.draw_note_list = deque(sorted(self.draw_note_list, key=lambda n: n.load_ms))