fixed pressing numpad keys with numpad on acting both as moves and quick-keys

This commit is contained in:
Zeno Rogue 2024-04-07 23:35:33 +02:00
parent 32d329d81e
commit 92603dddcc
1 changed files with 1 additions and 1 deletions

View File

@ -524,7 +524,7 @@ EX void handleKeyNormal(int sym, int uni) {
if(!(uni >= 'A' && uni <= 'Z') && DEFAULTCONTROL && !game_keys_scroll) {
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);
}