From f29bc45b509a4562dcf40801112b3a884b13f299 Mon Sep 17 00:00:00 2001 From: "Anton E. Gavrilov" Date: Mon, 22 May 2000 13:29:20 +0000 Subject: [PATCH] Here it is. No more lockups :) Please don't kill me --- source/keys.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/source/keys.c b/source/keys.c index be39716..c77f708 100644 --- a/source/keys.c +++ b/source/keys.c @@ -789,12 +789,14 @@ void Key_Event (int key, qboolean down) if (down) { key_repeats[key]++; - if ((key != K_BACKSPACE && key != K_DEL + if (key_repeats[key] > 1) + { + if ((key != K_BACKSPACE && key != K_DEL && key != K_LEFTARROW && key != K_RIGHTARROW - && key != K_PGUP && key != K_PGDN - && key_repeats[key] > 1) || - (key_dest == key_game && cls.state == ca_active)) - return; // ignore most autorepeats + && key != K_PGUP && key != K_PGDN) + || (key_dest == key_game && cls.state == ca_active)) + return; // ignore most autorepeats + } if (key >= 200 && !keybindings[key]) Con_Printf ("%s is unbound, hit F4 to set.\n", Key_KeynumToString (key) );