From e4794aeb68864e3a3a0c01371355c9ab7694ac1d Mon Sep 17 00:00:00 2001 From: KadeDeveloper Date: Tue, 20 Jul 2021 15:54:17 -0700 Subject: [PATCH] I'm dumb --- source/KeyBindMenu.hx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/source/KeyBindMenu.hx b/source/KeyBindMenu.hx index 44e0044..89b3e5f 100644 --- a/source/KeyBindMenu.hx +++ b/source/KeyBindMenu.hx @@ -327,10 +327,11 @@ class KeyBindMenu extends FlxSubState { var oK = gpKeys[x]; if(oK == r) - gpKeys[x] = null; + gpKeys[curSelected] = tempKey; if (notAllowed.contains(oK)) { - gpKeys[x] = null; + gpKeys[curSelected] = tempKey; + lastKey = r; return; } } @@ -341,10 +342,7 @@ class KeyBindMenu extends FlxSubState } else{ gpKeys[curSelected] = tempKey; - FlxG.sound.play(Paths.sound('scrollMenu')); - keyWarning.alpha = 1; - warningTween.cancel(); - warningTween = FlxTween.tween(keyWarning, {alpha: 0}, 0.5, {ease: FlxEase.circOut, startDelay: 2}); + lastKey = r; } }