/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_del_sprites_lists.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: joelecle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 17:28:46 by joelecle #+# #+# */ /* Updated: 2020/02/14 17:28:46 by joelecle ### ########lyon.fr */ /* */ /* ************************************************************************** */ #include #include #include void ft_del_sprites_lists(t_cub *clist) { int8_t i; if (clist->mlist.sprite_nbr[13] > 0) ft_memdel((void*)&clist->bad_boy); i = 0; while (i < FT_TOTAL_SPRT) { ft_memdel((void*)&clist->sprites[i]); i++; } ft_memdel((void*)&clist->sprites); }