aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_init_map.c')
-rw-r--r--src/ft_init_map.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ft_init_map.c b/src/ft_init_map.c
index 37fc858..f740fd8 100644
--- a/src/ft_init_map.c
+++ b/src/ft_init_map.c
@@ -57,6 +57,7 @@ static int8_t
int8_t
ft_init_map_norme(t_map *mlist)
{
+ mlist->darklvl = 0;
mlist->scale = 0;
mlist->nlx = 0;
mlist->nly = 0;
@@ -65,6 +66,9 @@ int8_t
ft_bzero(mlist->sprite_nbr, 4096);
ft_bzero(mlist->sprite_order, 4096);
ft_bzero(mlist->traps_order, 512);
+ ft_bzero(mlist->heals_order, 64);
+ ft_bzero(mlist->weaps_nbr, 2);
+ ft_bzero(mlist->weaps_order, 2);
return (0);
}
@@ -91,8 +95,9 @@ int8_t
mlist->isskybox = 0;
mlist->istraps = 0;
mlist->isheals = 0;
+ mlist->isweapon[0] = 0;
+ mlist->isweapon[1] = 0;
mlist->traps_nbr = 0;
mlist->heals_nbr = 0;
- mlist->darklvl = 0;
return (ft_init_map_norme(mlist));
}