From 888c8a341e81e8db682b42b07a365eadacd1cf1d Mon Sep 17 00:00:00 2001 From: Vortex2Oblivion <73261680+Vortex2Oblivion@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:54:59 -0400 Subject: [PATCH] fix some antialiasing issues --- source/game/Note.hx | 2 +- source/game/components/TallyCounter.hx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/game/Note.hx b/source/game/Note.hx index d4ac094160..4c1ba9b03f 100644 --- a/source/game/Note.hx +++ b/source/game/Note.hx @@ -241,7 +241,7 @@ class Note extends FlxSkewedSprite { var noteColor = NoteColors.getNoteColor(NoteVariables.Other_Note_Anim_Stuff[song.keyCount - 1][noteData]); - if(colorSwap != null){ + if(noteColor!= null && colorSwap != null){ colorSwap.r = noteColor[0]; colorSwap.g = noteColor[1]; colorSwap.b = noteColor[2]; diff --git a/source/game/components/TallyCounter.hx b/source/game/components/TallyCounter.hx index 72ae560ca7..89cb32b1f2 100644 --- a/source/game/components/TallyCounter.hx +++ b/source/game/components/TallyCounter.hx @@ -31,6 +31,8 @@ class TallyCounter extends FlxTypedSpriteGroup this.neededNumber = neededNumber; + antialiasing = Options.getData("antialiasing"); + if (curNumber == neededNumber) drawNumbers(); }