mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-20 13:00:11 +00:00
fixed pressing numpad keys with numpad on acting both as moves and quick-keys
This commit is contained in:
parent
32d329d81e
commit
92603dddcc
@ -524,7 +524,7 @@ EX void handleKeyNormal(int sym, int uni) {
|
|||||||
|
|
||||||
if(!(uni >= 'A' && uni <= 'Z') && DEFAULTCONTROL && !game_keys_scroll) {
|
if(!(uni >= 'A' && uni <= 'Z') && DEFAULTCONTROL && !game_keys_scroll) {
|
||||||
for(int i=0; i<8; i++)
|
for(int i=0; i<8; i++)
|
||||||
if(among(sym, keys_vi[i], keys_wasd[i], keys_numpad[i]))
|
if(among(sym, keys_vi[i], keys_wasd[i], (uni >= '0' && uni <= '9') ? -1 : keys_numpad[i]))
|
||||||
movepckeydir(i);
|
movepckeydir(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user