aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_key_loop.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-14 01:06:59 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-14 01:06:59 +0100
commita383bde7d29293919eb635aeb14760a7a55e12b3 (patch)
tree76000460117d1ab1348d98a03e2c92215755fde8 /src/ft_key_loop.c
parentFuck threads and forks (diff)
download42-cub3d-a383bde7d29293919eb635aeb14760a7a55e12b3.tar.gz
42-cub3d-a383bde7d29293919eb635aeb14760a7a55e12b3.tar.bz2
42-cub3d-a383bde7d29293919eb635aeb14760a7a55e12b3.tar.xz
42-cub3d-a383bde7d29293919eb635aeb14760a7a55e12b3.tar.zst
42-cub3d-a383bde7d29293919eb635aeb14760a7a55e12b3.zip
Removed footsteps, in progress
Diffstat (limited to 'src/ft_key_loop.c')
-rw-r--r--src/ft_key_loop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c
index 647b887..dc3a65d 100644
--- a/src/ft_key_loop.c
+++ b/src/ft_key_loop.c
@@ -83,19 +83,19 @@ int
{
cl->key_ptr[cl->key_input[i]](cl);
ft_collision(old_y, old_x, cl->key_input[i], cl);
- if (cl->key_input[i] >= 0 && cl->key_input[i] <= 3)
- ft_sfx_footstep(cl);
if (cl->mlist.isnlvl && !cl->plist.isdead)
{
if ((uint32_t)cl->plist.pos_x == cl->mlist.nlx &&
(uint32_t)cl->plist.pos_y == cl->mlist.nly)
{
+ ft_sfx_new_level(cl);
return ((ft_warp_level(cl->mlist.nlevel_path, cl) < 0) ?
(ft_exit(FT_RET_FAILED_STRUCTS, cl)) : (0));
}
}
i++;
}
+ ft_printf("%hhu\n", cl->plist.isdead);
if (cl->key_input[0] != -1)
ft_draw_scene(cl);
return (0);