From 69ca60b6f989dedc94c2e25ab9927b26d63cbdf8 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 29 Mar 2020 17:34:48 +0200 Subject: Norm --- src/ft_get_heal_spawn.c | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 src/ft_get_heal_spawn.c (limited to 'src/ft_get_heal_spawn.c') diff --git a/src/ft_get_heal_spawn.c b/src/ft_get_heal_spawn.c deleted file mode 100644 index 142709b..0000000 --- a/src/ft_get_heal_spawn.c +++ /dev/null @@ -1,45 +0,0 @@ -/* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* ft_get_traps.c :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: rbousset +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* Created: 2020/02/28 18:24:52 by rbousset #+# #+# */ -/* Updated: 2020/02/28 18:24:56 by rbousset ### ########lyon.fr */ -/* */ -/* ************************************************************************** */ - -#include -#include -#include - -void - ft_get_heal_spawn(t_cub *clist) -{ - size_t x; - size_t y; - uint8_t i; - - x = 1; - y = 1; - i = 0; - while (clist->mlist.map[y]) - { - while (clist->mlist.map[y][x]) - { - if (clist->mlist.map[y][x] == '+') - { - clist->mlist.heals_nbr++; - if (clist->mlist.heals_nbr > 64) - ft_map_error(FT_ERR_TOO_MUCH_HEALS, clist); - clist->heals[i].s_pos_x = x; - clist->heals[i].s_pos_y = y; - i++; - } - x++; - } - x = 1; - y++; - } -} -- cgit v1.2.3