aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_sprite_spawns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_get_sprite_spawns.c')
-rw-r--r--src/ft_get_sprite_spawns.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_get_sprite_spawns.c b/src/ft_get_sprite_spawns.c
index 047523a..0dc0f7a 100644
--- a/src/ft_get_sprite_spawns.c
+++ b/src/ft_get_sprite_spawns.c
@@ -73,6 +73,7 @@ int8_t
if (clist->mlist.map[y][x] == c)
{
clist->mlist.sprite_nbr[s_n]++;
+ clist->sprites[s_n][i].exists = 1;
clist->sprites[s_n][i].s_pos_x = x;
clist->sprites[s_n][i].s_pos_y = y;
i++;
@@ -105,6 +106,7 @@ void
if (ft_ischarset("2", clist->mlist.map[y][x]))
{
clist->mlist.sprite_nbr[0]++;
+ clist->sprites[0][i].exists = 1;
clist->sprites[0][i].s_pos_x = x;
clist->sprites[0][i].s_pos_y = y;
i++;