Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Fixed sustain notes having weird angles in modcharts where a strum's angle is changed (hopefully)
Fixed notes on the same note data only playing 1 note on 1 side if "Play Both Sides" is enabled
  • Loading branch information
JordanSantiagoYT committed Oct 12, 2024
1 parent 57f2c59 commit f7adc57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/Note.hx
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ class Note extends FlxSprite

if (isSustainNote) {
offsetX += width / 2;
copyAngle = !chartNoteData.isSustainEnd;
copyAngle = !false;
animation.play(colArray[noteData % 4] + (chartNoteData.isSustainEnd ? 'holdend' : 'hold'));
updateHitbox();
offsetX -= width / 2;
Expand Down
4 changes: 3 additions & 1 deletion source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -5452,7 +5452,8 @@ class PlayState extends MusicBeatState
if (plrInputNotes.length > 1) {
var doubleNote:Note = plrInputNotes[1];

if (doubleNote.noteData == funnyNote.noteData) {
//if the note has the same notedata and doOppStuff indicator as funnynote, then do the check
if (doubleNote.noteData == funnyNote.noteData && doubleNote.doOppStuff == funnyNote.doOppStuff) {
// if the note has a 0ms distance (is on top of the current note), kill it
if (Math.abs(doubleNote.strumTime - funnyNote.strumTime) < 1.0)
invalidateNote(doubleNote);
Expand All @@ -5462,6 +5463,7 @@ class PlayState extends MusicBeatState
funnyNote = doubleNote;
}
}
else goodNoteHit(doubleNote); //otherwise, hit doubleNote instead of killing it
}
goodNoteHit(funnyNote);
if (plrInputNotes.length > 2 && ClientPrefs.ezSpam) //literally all you need to allow you to spam though impossibly hard jacks
Expand Down

0 comments on commit f7adc57

Please sign in to comment.