Skip to content

Commit

Permalink
Don't iterate multiple times if 'remove slider lock' option is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reco1I committed Nov 24, 2023
1 parent b6575b0 commit e4ec766
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ru/nsu/ccfit/zuev/osu/game/GameScene.java
Original file line number Diff line number Diff line change
Expand Up @@ -1638,10 +1638,12 @@ public void onUpdate(final float pSecondsElapsed) {
cursorIIsDown[i] = false;
}

for (int i = 0; i < downPressCursorCount - 1; i++) {
if (Config.isRemoveSliderLock()) {
if (Config.isRemoveSliderLock()) {
for (int i = 0; i < downPressCursorCount - 1; i++) {
updateLastActiveObjectHitTime();
tryHitActiveObjects(dt);
}
} else {
tryHitActiveObjects(dt);
}

Expand Down

0 comments on commit e4ec766

Please sign in to comment.