diff options
author | P. J. McDermott <pj@pehjota.net> | 2021-08-08 19:45:54 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2021-08-08 19:51:37 (EDT) |
commit | da11b8d5afa60cd6f46aa83feafbd720ef8ef923 (patch) | |
tree | eabaae6895bdbcf928062a40356300c533b515ed | |
parent | 3b50da3523dcd6bc05964498732c56c2aae9509e (diff) | |
download | mazefight-da11b8d5afa60cd6f46aa83feafbd720ef8ef923.zip mazefight-da11b8d5afa60cd6f46aa83feafbd720ef8ef923.tar.gz mazefight-da11b8d5afa60cd6f46aa83feafbd720ef8ef923.tar.bz2 |
char/player: Prune #include directives
And re-align assignments.
-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 { |