Skip to content

Commit

Permalink
Prevent assist tick from firing multiple times when effectOffset is c…
Browse files Browse the repository at this point in the history
…hanged
  • Loading branch information
tillvit committed Nov 2, 2024
1 parent a5358e3 commit 63da95a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/src/chart/ChartManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,10 @@ export class ChartManager {
) {
if (
assistRows.has(notedata[this.assistTickIndex].second) ||
time > notedata[this.assistTickIndex].second
notedata[this.assistTickIndex].second +
Options.play.effectOffset -
time <
0
) {
this.assistTickIndex++
continue
Expand All @@ -470,7 +473,7 @@ export class ChartManager {
this.assistTick.play(
notedata[this.assistTickIndex].second +
Options.play.effectOffset -
this.time
time
)
}
assistRows.add(notedata[this.assistTickIndex].second)
Expand Down

0 comments on commit 63da95a

Please sign in to comment.