From 8f852afcfa170070b6f0ac2e321546990d87e401 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Fri, 28 Feb 2020 15:30:53 +0100 Subject: gang --- src/ft_key_loop.c | 5 ++++- 1 file changed, 4 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..d913c49 100644 --- a/src/ft_key_loop.c +++ b/src/ft_key_loop.c @@ -42,6 +42,9 @@ 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