summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2013-09-21 01:02:20 +0400
committerAndrey Nazarov <skuller@skuller.net>2013-09-21 17:47:06 +0400
commit264186e258a3ec0930b6e8e48bfb6732a7ed973d (patch)
treea1c4debf4fe43ccd7cc64da7217d10046ac25831
parent8fb0c53f98fc6dae3343b884f891f084731fed50 (diff)
Fix key states for instant packet special case.
-rw-r--r--src/client/input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/input.c b/src/client/input.c
index 08778f2..d6d0d35 100644
--- a/src/client/input.c
+++ b/src/client/input.c
@@ -474,8 +474,9 @@ static float CL_KeyState(kbutton_t *key)
}
}
+ // special case for instant packet
if (!cl.cmd.msec) {
- return 0;
+ return (float)(key->state & 1);
}
val = (float)msec / cl.cmd.msec;