diff options
-rw-r--r-- | src/char/player.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/char/player.c b/src/char/player.c index 5230734..8f44aa2 100644 --- a/src/char/player.c +++ b/src/char/player.c @@ -18,9 +18,6 @@ */ #include <SDL.h> -#include <errno.h> -#include <stdlib.h> -#include <string.h> #include "../char.h" #include "../defs.h" #include "../maze.h" @@ -43,7 +40,7 @@ _mf_player_update(struct mf_char *c, int stepped __attribute__((__unused__))) case MF_CHAR_DIR_D_: dx = 0; dy = 1; break; case MF_CHAR_DIR_L_: dx = -1; dy = 0; break; case MF_CHAR_DIR_R_: dx = 1; dy = 0; break; - default: dx = 0; dy = 0; break; + default: dx = 0; dy = 0; break; } x = c->cur_x - dx, y = c->cur_y - dy; do { |