Skip to content

Commit

Permalink
Update NoteOffsetState.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 authored Dec 22, 2024
1 parent 552fd61 commit 420646f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/options/NoteOffsetState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,13 @@ class NoteOffsetState extends MusicBeatState
{
if(controls.UI_LEFT_P)
{
holdTime = 0;
barPercent = Math.max(delayMin, Math.min(ClientPrefs.data.noteOffset - 1, delayMax));
updateNoteDelay();
}
else if(controls.UI_RIGHT_P)
{
holdTime = 0;
barPercent = Math.max(delayMin, Math.min(ClientPrefs.data.noteOffset + 1, delayMax));
updateNoteDelay();
}
Expand All @@ -375,8 +377,6 @@ class NoteOffsetState extends MusicBeatState
if(controls.UI_LEFT) mult = -1;
}

if(controls.UI_LEFT_R || controls.UI_RIGHT_R) holdTime = 0;

if(holdTime > 0.5)
{
barPercent += 100 * addNum * elapsed * mult;
Expand Down

0 comments on commit 420646f

Please sign in to comment.