From 63da95a5bb4969e4a9ad4b2ba7e2af9f49d20112 Mon Sep 17 00:00:00 2001 From: tillvit Date: Sat, 2 Nov 2024 17:12:44 -0400 Subject: [PATCH] Prevent assist tick from firing multiple times when effectOffset is changed --- app/src/chart/ChartManager.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/chart/ChartManager.ts b/app/src/chart/ChartManager.ts index 8418e0d4..07b983ab 100644 --- a/app/src/chart/ChartManager.ts +++ b/app/src/chart/ChartManager.ts @@ -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 @@ -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)