This commit is contained in:
KadeDeveloper 2021-07-20 15:56:44 -07:00
parent e4794aeb68
commit 4a1a87e6ff

View File

@ -327,10 +327,10 @@ class KeyBindMenu extends FlxSubState
{ {
var oK = gpKeys[x]; var oK = gpKeys[x];
if(oK == r) if(oK == r)
gpKeys[curSelected] = tempKey; gpKeys[x] = null;
if (notAllowed.contains(oK)) if (notAllowed.contains(oK))
{ {
gpKeys[curSelected] = tempKey; gpKeys[x] = null;
lastKey = r; lastKey = r;
return; return;
} }
@ -363,10 +363,10 @@ class KeyBindMenu extends FlxSubState
{ {
var oK = keys[x]; var oK = keys[x];
if(oK == r) if(oK == r)
keys[curSelected] = tempKey; keys[x] = null;
if (notAllowed.contains(oK)) if (notAllowed.contains(oK))
{ {
keys[curSelected] = tempKey; keys[x] = null;
lastKey = oK; lastKey = oK;
return; return;
} }
@ -374,7 +374,7 @@ class KeyBindMenu extends FlxSubState
if (r.contains("NUMPAD")) if (r.contains("NUMPAD"))
{ {
keys[curSelected] = tempKey; keys[curSelected] = null;
lastKey = r; lastKey = r;
return; return;
} }