mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 03:30:13 +01:00
delay hotfixes
This commit is contained in:
@@ -64,7 +64,6 @@ BGOFFSET,Unsupported,Unknown
|
|||||||
|
|
||||||
#LEVELHOLD,Unsupported,TaikoJiro v1.63
|
#LEVELHOLD,Unsupported,TaikoJiro v1.63
|
||||||
#DIRECTION,Unsupported,TJAPlayer2 for.PC
|
#DIRECTION,Unsupported,TJAPlayer2 for.PC
|
||||||
#HIDDEN,Unsupported,TJAPlayer2 for.PC
|
|
||||||
#SENOTECHANGE,Unsupported,TJAPlayer3 v1.4.0
|
#SENOTECHANGE,Unsupported,TJAPlayer3 v1.4.0
|
||||||
#NEXTSONG,Unsupported,TJAPlayer3 v1.5.0
|
#NEXTSONG,Unsupported,TJAPlayer3 v1.5.0
|
||||||
#PAPAMAMA,Unsupported,TJAPlayer3-f v1.7.2.0
|
#PAPAMAMA,Unsupported,TJAPlayer3-f v1.7.2.0
|
||||||
|
|||||||
|
@@ -1281,7 +1281,6 @@ class TJAParser:
|
|||||||
continue
|
continue
|
||||||
elif part.startswith("#DELAY"):
|
elif part.startswith("#DELAY"):
|
||||||
delay_ms = float(part[6:]) * 1000
|
delay_ms = float(part[6:]) * 1000
|
||||||
if scroll_type == ScrollType.BMSCROLL or scroll_type == ScrollType.HBSCROLL:
|
|
||||||
if delay_ms <= 0:
|
if delay_ms <= 0:
|
||||||
# No changes if not positive
|
# No changes if not positive
|
||||||
pass
|
pass
|
||||||
@@ -1290,8 +1289,6 @@ class TJAParser:
|
|||||||
delay_current += delay_ms
|
delay_current += delay_ms
|
||||||
|
|
||||||
# Delays will be combined between notes, and attached to previous note
|
# Delays will be combined between notes, and attached to previous note
|
||||||
else:
|
|
||||||
self.current_ms += delay_ms
|
|
||||||
continue
|
continue
|
||||||
elif part.startswith("#SUDDEN"):
|
elif part.startswith("#SUDDEN"):
|
||||||
parts = part.split()
|
parts = part.split()
|
||||||
|
|||||||
@@ -1067,7 +1067,7 @@ class Player:
|
|||||||
# Check if it ended
|
# Check if it ended
|
||||||
if ms_from_start >= self.delay_end:
|
if ms_from_start >= self.delay_end:
|
||||||
delay = self.delay_end - self.delay_start
|
delay = self.delay_end - self.delay_start
|
||||||
for note in chain(self.play_notes, self.current_bars, self.draw_bar_list):
|
for note in chain(self.don_notes, self.kat_notes, self.other_notes, self.current_bars, self.draw_bar_list):
|
||||||
note.load_ms += delay
|
note.load_ms += delay
|
||||||
self.delay_start = None
|
self.delay_start = None
|
||||||
self.delay_end = None
|
self.delay_end = None
|
||||||
|
|||||||
Reference in New Issue
Block a user