From b626f171f26f709b27e790911b48f7a4272dc707 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 27 Mar 2020 13:55:24 +0100 Subject: In progress --- src/ft_del_sprites_lists.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ft_del_sprites_lists.c') diff --git a/src/ft_del_sprites_lists.c b/src/ft_del_sprites_lists.c index bb382e6..613ac82 100644 --- a/src/ft_del_sprites_lists.c +++ b/src/ft_del_sprites_lists.c @@ -17,10 +17,10 @@ void ft_del_sprites_lists(t_cub *clist) { - uint8_t i; + int8_t i; i = 0; - while (i < 8) + while (i < FT_TOTAL_SPRT) { ft_memdel((void*)&clist->sprites[i]); i++; -- cgit v1.2.3 From b3aecb150f55ebc9dde7c1b09559d1566e9e92a6 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 28 Mar 2020 16:46:40 +0100 Subject: All in sprites --- src/ft_del_sprites_lists.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/ft_del_sprites_lists.c') diff --git a/src/ft_del_sprites_lists.c b/src/ft_del_sprites_lists.c index 613ac82..6a1a662 100644 --- a/src/ft_del_sprites_lists.c +++ b/src/ft_del_sprites_lists.c @@ -26,11 +26,4 @@ void i++; } ft_memdel((void*)&clist->sprites); - i = 0; - while (i < 3) - { - ft_memdel((void*)&clist->weaps[i]); - i++; - } - ft_memdel((void*)&clist->weaps); } -- cgit v1.2.3