From 137397e014be24d48ccc60e36af21ffc25229b77 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 31 Mar 2020 14:29:18 +0200 Subject: Fixed that gangsta --- src/ft_key_loop.c | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'src/ft_key_loop.c') diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c index dad6467..281c81e 100644 --- a/src/ft_key_loop.c +++ b/src/ft_key_loop.c @@ -16,26 +16,7 @@ #include #include #include - -static void - ft_check_bad_boy_shoot(t_cub *cl) -{ - int8_t i; - - i = 0; - while (i < cl->mlist.sprite_nbr[13]) - { - if (cl->bad_boy[i].does == 2) - { - cl->sfx[11].sfx_play(cl->sfx); - if (FT_OS == 1) - ft_macos_suffer_animation(FT_ENMY_DAMAGE_AMOUNT, cl); - else - ft_linux_suffer_animation(FT_ENMY_DAMAGE_AMOUNT, cl); - } - i++; - } -} +#include int ft_key_loop(t_cub *cl) @@ -56,5 +37,6 @@ int begin_frame = clock(); ft_draw_scene(cl); ft_timings(begin_frame, cl); + ft_get_fps_count(begin_frame, cl); return (0); } -- cgit v1.2.3