From a504c1c64239fd27a75144c2c32ccd7f7cd99c9f Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Fri, 28 Feb 2020 14:58:26 +0100 Subject: FIX --- src/ft_key_loop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ft_key_loop.c') diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c index d92b37e..a6c1690 100644 --- a/src/ft_key_loop.c +++ b/src/ft_key_loop.c @@ -42,6 +42,7 @@ int ft_collision(old_y, old_x, cl->plist, cl->mlist); i++; } - ft_draw_scene(cl); + if (cl->key_input[0] != -1) + ft_draw_scene(cl); return (0); } -- cgit v1.2.3