Skip to content

Commit

Permalink
Fix: Hold Note in Play Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleYang0531 committed Aug 15, 2024
1 parent 0d264e6 commit 8bc978f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions engine/play/notes/HoldNote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8bc978f

Please sign in to comment.