diff options
author | Holger Zickner <[email protected]> | 2005-06-07 08:43:11 +0000 |
---|---|---|
committer | Holger Zickner <[email protected]> | 2005-06-07 08:43:11 +0000 |
commit | a9a69d636b4027a484847ea2bae049a97fdbc99d (patch) | |
tree | cf1fdf01d13c2ef624e9b440939cf16b4f5c5292 | |
parent | def1ad7e53ee32f2593971e1b7f7ef06aa02b3ec (diff) |
handling of keyboard repeats depends now on game state
-rw-r--r-- | src/jake2/client/Key.java | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/jake2/client/Key.java b/src/jake2/client/Key.java index 887f3a1..2a0a45f 100644 --- a/src/jake2/client/Key.java +++ b/src/jake2/client/Key.java @@ -2,7 +2,7 @@ * Key.java * Copyright (C) 2003 * - * $Id: Key.java,v 1.9 2005-06-06 18:22:20 hzi Exp $ + * $Id: Key.java,v 1.10 2005-06-07 08:43:11 hzi Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -301,13 +301,9 @@ public class Key extends Globals { // update auto-repeat status if (down) { key_repeats[key]++; - if (key != K_BACKSPACE - && key != K_PAUSE - && key != K_PGUP - && key != K_KP_PGUP - && key != K_PGDN - && key != K_KP_PGDN - && key_repeats[key] > 1) + if (key_repeats[key] > 1 + && Globals.cls.key_dest == Defines.key_game + && !(Globals.cls.state == Defines.ca_disconnected)) return; // ignore most autorepeats if (key >= 200 && Globals.keybindings[key] == null) |