From e6b473b7522c331cb8d2c62e8a2d05e0840800db Mon Sep 17 00:00:00 2001 From: Michal Zima Date: Mon, 7 Jun 2010 20:35:00 +0200 Subject: [BUGFIX] Player uses other gun than he expects --- src/client/control.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/client/control.c') 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) { -- cgit v1.2.3