From 2e94225f4f96074ce5f0320500d5b006f7ccc875 Mon Sep 17 00:00:00 2001
From: JozanLeClerc <bousset.rudy@gmail.com>
Date: Sat, 22 Feb 2020 23:30:19 +0100
Subject: Smooth af

---
 Makefile          | 2 +-
 src/ft_key_loop.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index c5c20e2..2c2443d 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ MLX_DIR		= minilibx/
 #==================================================================================================#
 #---------------------------------------------- Files ---------------------------------------------#
 #==================================================================================================#
-INCS		= cub3d.h
+INCS		 = cub3d.h
 INCS		+= cub3d_defines.h
 INCS		+= cub3d_structs.h
 #--------------------------------------------------------------------------------------------------#
diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c
index 2fe62e7..d92b37e 100644
--- a/src/ft_key_loop.c
+++ b/src/ft_key_loop.c
@@ -40,8 +40,8 @@ int
 	{
 		cl->key_ptr[cl->key_input[i]](cl);
 		ft_collision(old_y, old_x, cl->plist, cl->mlist);
-		ft_draw_scene(cl);
 		i++;
 	}
+	ft_draw_scene(cl);
 	return (0);
 }
-- 
cgit v1.2.3