mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
fix bug where -commands where executed and command buffer could be filled when key repeated
This commit is contained in:
parent
8de4d28238
commit
c6217dc7a7
1 changed files with 4 additions and 1 deletions
|
@ -400,8 +400,11 @@ Key_Game (knum_t key, short unicode)
|
||||||
if (!kb)
|
if (!kb)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (keydown[key] > 1)
|
||||||
|
return true;
|
||||||
|
|
||||||
if (kb[0] == '+') {
|
if (kb[0] == '+') {
|
||||||
if (keydown[key] == 1)
|
if (keydown[key])
|
||||||
snprintf (cmd, sizeof (cmd), "%s %d\n", kb, key);
|
snprintf (cmd, sizeof (cmd), "%s %d\n", kb, key);
|
||||||
else
|
else
|
||||||
snprintf (cmd, sizeof (cmd), "-%s %d\n", kb + 1, key);
|
snprintf (cmd, sizeof (cmd), "-%s %d\n", kb + 1, key);
|
||||||
|
|
Loading…
Reference in a new issue