/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_del_lists.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rbousset +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 17:28:46 by rbousset #+# #+# */ /* Updated: 2020/02/14 17:28:46 by rbousset ### ########lyon.fr */ /* */ /* ************************************************************************** */ #include #include #include void ft_del_lists(t_cub *clist) { uint8_t i; i = 0; while (i < 10) { ft_memdel((void*)&clist->sfx[i].cmd); i++; } ft_memdel((void*)&clist->sfx[1].cmd_alt); ft_memdel((void*)&clist->sfx[3].cmd_alt); while (i < 8) { ft_memdel((void*)&clist->sprites[i]); i++; } ft_memdel((void*)&clist->sprites); i = 0; while (i < 2) { ft_memdel((void*)&clist->weaps[i]); i++; } ft_memdel((void*)&clist->weaps); }