From a383bde7d29293919eb635aeb14760a7a55e12b3 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 14 Mar 2020 01:06:59 +0100 Subject: Removed footsteps, in progress --- src/ft_key_loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ft_key_loop.c') 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); -- cgit v1.2.3