Skip to content

Commit fa09458

Browse files
committed
Fix Sustain Cliprect not updating on press hit
1 parent 8cadcd7 commit fa09458

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

source/funkin/game/PlayState.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1984,6 +1984,7 @@ class PlayState extends MusicBeatState
19841984
}
19851985

19861986
if (event.deleteNote) strumLine.deleteNote(note);
1987+
else note.updateSustainClip();
19871988

19881989
gameAndCharsEvent("onPostNoteHit", event);
19891990
}

source/funkin/game/StrumLine.hx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ class StrumLine extends FlxTypedGroup<Strum> {
268268
if (__pressed[note.strumID] && note.isSustainNote && note.sustainParent != null && note.sustainParent.wasGoodHit && note.strumTime < __updateNote_songPos && !note.wasGoodHit) {
269269
note.tripTimer = 1;
270270
PlayState.instance.goodNoteHit(this, note);
271-
note.updateSustainClip();
272271
}
273272
}
274273
function __inputProcessJustPressed(note:Note) {

0 commit comments

Comments
 (0)