diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-14 01:13:23 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-14 01:13:23 +0100 |
commit | 47c6c125c7095bae50188376d8d8d10fe8b2b1c8 (patch) | |
tree | 5d4554ed336a70e0ca8e9d62ed764ff131a59330 /src/ft_key_loop.c | |
parent | Removed footsteps, in progress (diff) | |
download | 42-cub3d-47c6c125c7095bae50188376d8d8d10fe8b2b1c8.tar.gz 42-cub3d-47c6c125c7095bae50188376d8d8d10fe8b2b1c8.tar.bz2 42-cub3d-47c6c125c7095bae50188376d8d8d10fe8b2b1c8.tar.xz 42-cub3d-47c6c125c7095bae50188376d8d8d10fe8b2b1c8.tar.zst 42-cub3d-47c6c125c7095bae50188376d8d8d10fe8b2b1c8.zip |
Better than nothing
Diffstat (limited to 'src/ft_key_loop.c')
-rw-r--r-- | src/ft_key_loop.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c index dc3a65d..c16655e 100644 --- a/src/ft_key_loop.c +++ b/src/ft_key_loop.c @@ -83,7 +83,7 @@ int { cl->key_ptr[cl->key_input[i]](cl); ft_collision(old_y, old_x, cl->key_input[i], cl); - if (cl->mlist.isnlvl && !cl->plist.isdead) + if (cl->mlist.isnlvl) { if ((uint32_t)cl->plist.pos_x == cl->mlist.nlx && (uint32_t)cl->plist.pos_y == cl->mlist.nly) @@ -95,7 +95,6 @@ int } i++; } - ft_printf("%hhu\n", cl->plist.isdead); if (cl->key_input[0] != -1) ft_draw_scene(cl); return (0); |