summaryrefslogtreecommitdiff
path: root/src/client/control.c
diff options
context:
space:
mode:
authorMichal Zima <xhire@mujmalysvet.cz>2010-06-07 20:35:00 +0200
committerMichal Zima <xhire@mujmalysvet.cz>2010-06-07 20:35:00 +0200
commite6b473b7522c331cb8d2c62e8a2d05e0840800db (patch)
tree6d911ca4559dd43f8ea2c377a836e0e3b03f1c49 /src/client/control.c
parent0cb72c814fa839268ed7a09d59d82aa1514a8155 (diff)
[BUGFIX] Player uses other gun than he expects
Diffstat (limited to 'src/client/control.c')
-rw-r--r--src/client/control.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/client/control.c b/src/client/control.c
index 8075692..bfc2428 100644
--- a/src/client/control.c
+++ b/src/client/control.c
@@ -60,12 +60,9 @@ int control_get_key_route(control_t *my_control)
int control_get_key_action(control_t *my_control)
{
Uint8 *map;
- SDLKey ret_key;
assert(my_control != NULL);
- ret_key = CONTROL_NONE;
-
map = SDL_GetKeyState(NULL);
if (map[my_control->key[CONTROL_SHOT]] == SDL_PRESSED) {