From 8bc978f8f4afadf261227cc2b4511a48ff93fa8c Mon Sep 17 00:00:00 2001 From: LittleYang0531 <“littleyang0531@outlook.com”> Date: Thu, 15 Aug 2024 03:55:58 +0000 Subject: [PATCH] Fix: Hold Note in Play Mode --- engine/play/notes/HoldNote.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/engine/play/notes/HoldNote.cpp b/engine/play/notes/HoldNote.cpp index 13d5986..2abf6f6 100644 --- a/engine/play/notes/HoldNote.cpp +++ b/engine/play/notes/HoldNote.cpp @@ -63,25 +63,25 @@ class HoldNote: public Archetype { maxTime = Max(maxTime, time); maxTime = Max(maxTime, time + holdTime); sfxPlayed = false; - var id = EntityDataArray[judgeline].get(0); - WHILE (id) { - var deltaFloorPosition = Abs(floorPosition) - EntitySharedMemoryArray[id].get(1); - IF (deltaFloorPosition <= 10 / 3 / 1) BREAK; FI - appearTime = EntityDataArray[id].get(0) * timeMagic / bpm + (deltaFloorPosition - 10 / 3 / 1) / EntityDataArray[id].get(2); - id = EntityDataArray[id].get(3); - } DONE - appearTime = Max(0, Min(appearTime, time - 0.5)); + // var id = EntityDataArray[judgeline].get(0); + // WHILE (id) { + // var deltaFloorPosition = Abs(floorPosition) - EntitySharedMemoryArray[id].get(1); + // IF (deltaFloorPosition <= 10 / 3 / 1) BREAK; FI + // appearTime = EntityDataArray[id].get(0) * timeMagic / bpm + (deltaFloorPosition - 10 / 3 / 1) / EntityDataArray[id].get(2); + // id = EntityDataArray[id].get(3); + // } DONE + // appearTime = Max(0, Min(appearTime, time - 0.5)); return VOID; } SonolusApi updateSequential() { FUNCBEGIN IF (times.now < 0) Return(0); FI - IF (isFake) + IF (isFake) { released = false; IF (times.now > time + holdTime) EntityDespawn.set(0, 1); FI Return(0); - FI + } FI IF (times.now > time + holdTime) { IF (isActive && !released) { combo = combo + 1;