From 96534d2121cd9097da83b69ea5947ea93b736edc Mon Sep 17 00:00:00 2001 From: salad Date: Fri, 27 Mar 2020 22:23:03 +0100 Subject: jattend que ca clique --- src/ft_get_sprite_spawns.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ft_get_sprite_spawns.c') 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++; -- cgit v1.2.3