diff options
author | salad <salad@saladesk.desktop> | 2020-03-27 22:23:03 +0100 |
---|---|---|
committer | salad <salad@saladesk.desktop> | 2020-03-27 22:23:03 +0100 |
commit | 96534d2121cd9097da83b69ea5947ea93b736edc (patch) | |
tree | 92ae970a34d4b72d47c1add1452d4fd8ec5fc0c7 /src/ft_get_sprite_spawns.c | |
parent | Map update (diff) | |
download | 42-cub3d-96534d2121cd9097da83b69ea5947ea93b736edc.tar.gz 42-cub3d-96534d2121cd9097da83b69ea5947ea93b736edc.tar.bz2 42-cub3d-96534d2121cd9097da83b69ea5947ea93b736edc.tar.xz 42-cub3d-96534d2121cd9097da83b69ea5947ea93b736edc.tar.zst 42-cub3d-96534d2121cd9097da83b69ea5947ea93b736edc.zip |
jattend que ca clique
Diffstat (limited to 'src/ft_get_sprite_spawns.c')
-rw-r--r-- | src/ft_get_sprite_spawns.c | 2 |
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++; |