Skip to content

Commit

Permalink
oof
Browse files Browse the repository at this point in the history
  • Loading branch information
VMan-2002 committed Nov 14, 2023
1 parent a01e4b8 commit 5585ab2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion source/ChartingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,7 @@ class ChartingState extends MusicBeatState {

if (daSus > 0) {
var sustainVis:FlxSprite = new FlxSprite(note.x + (GRID_SIZE / 2),
note.y + GRID_SIZE)..makeGraphic(8, Math.floor(FlxMath.remapToRange(daSus, 0, Conductor.stepCrochet * 16, 0, gridBG.height)));
note.y + GRID_SIZE).makeGraphic(8, Math.floor(FlxMath.remapToRange(daSus, 0, Conductor.stepCrochet * 16, 0, gridBG.height)));
curRenderedSustains.add(sustainVis);
}
if ((!hasNormalNote || i[3] != normalNoteNum) && i.length >= 4) {
Expand Down
2 changes: 1 addition & 1 deletion source/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class MainMenuState extends MusicBeatState {

// NG.core.calls.event.logEvent('swag').send();
if (focusOn != null)
curSelected = a.optionShit.indexOf(focusOn);
curSelected = optionShit.indexOf(focusOn);
changeItem(0, false);
FlxG.camera.snapToTarget();

Expand Down
6 changes: 4 additions & 2 deletions source/NoteSplash.hx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ class NoteSplash extends FlxSprite {
else
color = noteSplashColorsDefault.get(thing.parent.thisManiaInfo.arrows[daNote.noteData]);
animation.play("splash", true);
animation.finishCallback = function(name:String)
kill();
animation.finishCallback = function(name:String) {
destroy();
this = null;
}
}

public var curStyle:String;
Expand Down
5 changes: 3 additions & 2 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2347,8 +2347,9 @@ class PlayState extends MusicBeatState {
marvelous += 1;
//todo: sometimes notesplashes are the wrong color
//todo: sometimes notesplashes crash.
if (Options.instance.noteSplash)
grpNoteSplashes.recycle(NoteSplash, NoteSplash.new).playNoteSplash(playerStrums.strumNotes[daNote.strumNoteNum], daNote);
if (Options.instance.noteSplash) {
grpNoteSplashes.add(new NoteSplash()).playNoteSplash(playerStrums.strumNotes[daNote.strumNoteNum], daNote);
}
}
if (daRating != "marvelous")
songMFC = false;
Expand Down

0 comments on commit 5585ab2

Please sign in to comment.