From 47c6c125c7095bae50188376d8d8d10fe8b2b1c8 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 14 Mar 2020 01:13:23 +0100 Subject: Better than nothing --- src/ft_key_loop.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ft_key_loop.c') 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); -- cgit v1.2.3