From 69ca60b6f989dedc94c2e25ab9927b26d63cbdf8 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 29 Mar 2020 17:34:48 +0200 Subject: Norm --- src/ft_init_weaps.c | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 src/ft_init_weaps.c (limited to 'src/ft_init_weaps.c') diff --git a/src/ft_init_weaps.c b/src/ft_init_weaps.c deleted file mode 100644 index f3f7452..0000000 --- a/src/ft_init_weaps.c +++ /dev/null @@ -1,34 +0,0 @@ -/* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* ft_init_weaps.c :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: rbousset +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* Created: 2020/02/14 17:28:53 by rbousset #+# #+# */ -/* Updated: 2020/02/14 17:28:53 by rbousset ### ########lyon.fr */ -/* */ -/* ************************************************************************** */ - -#include -#include -#include -#include -#include - -int8_t - ft_init_weaps(t_sprite ***weaps) -{ - uint8_t i; - - if (!(*weaps = (t_sprite**)ft_calloc(3, sizeof(t_sprite*)))) - return (-1); - i = 0; - while (i < 3) - { - if (!(*((*weaps) + i) = (t_sprite*)ft_calloc(1, sizeof(t_sprite)))) - return (-1); - i++; - } - return (0); -} -- cgit v1.2.3