From eaad0f2450d5a7ce60e8adebd935289cfc954130 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Fri, 13 Feb 2026 11:43:24 -0500 Subject: [PATCH] Additional readability changes. --- source/funkin/util/GRhythmUtil.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/funkin/util/GRhythmUtil.hx b/source/funkin/util/GRhythmUtil.hx index cc5abfd8a..a0bf69615 100644 --- a/source/funkin/util/GRhythmUtil.hx +++ b/source/funkin/util/GRhythmUtil.hx @@ -41,7 +41,9 @@ class GRhythmUtil */ public static function mirrorNoteDirection(noteData:Int):Int { - return (noteData < Strumline.KEY_COUNT ? Strumline.KEY_COUNT : Strumline.KEY_COUNT * 2) - 1 - noteData % (Strumline.KEY_COUNT); + final MAX_KEY_VALUE:Int = (noteData < Strumline.KEY_COUNT ? Strumline.KEY_COUNT : Strumline.KEY_COUNT * 2); + + return (MAX_KEY_VALUE - 1) - (noteData % Strumline.KEY_COUNT); } /**