diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-23 18:48:21 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-23 18:48:21 +0100 |
commit | 093e84b76c597015e89dddae8e51faae16feaf62 (patch) | |
tree | 66587b79153af48fb2aa8729ba8ca2c8d2d011e1 /src/ft_get_sprite_spawns.c | |
parent | Fixed sprite shadows (diff) | |
parent | Gonna merge (diff) | |
download | 42-cub3d-093e84b76c597015e89dddae8e51faae16feaf62.tar.gz 42-cub3d-093e84b76c597015e89dddae8e51faae16feaf62.tar.bz2 42-cub3d-093e84b76c597015e89dddae8e51faae16feaf62.tar.xz 42-cub3d-093e84b76c597015e89dddae8e51faae16feaf62.tar.zst 42-cub3d-093e84b76c597015e89dddae8e51faae16feaf62.zip |
Merge branch 'hitscan'
Diffstat (limited to 'src/ft_get_sprite_spawns.c')
-rw-r--r-- | src/ft_get_sprite_spawns.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_get_sprite_spawns.c b/src/ft_get_sprite_spawns.c index c24ba85..f4d7e1e 100644 --- a/src/ft_get_sprite_spawns.c +++ b/src/ft_get_sprite_spawns.c @@ -22,6 +22,7 @@ void y = 0; i = 0; + clist->mlist.sprite_nbr[s_n] = 0; while (clist->mlist.map[++y]) { while (clist->mlist.map[y][++x]) @@ -37,7 +38,7 @@ void x = 0; } if (clist->sprites[s_n][(i - 1 < 0) ? (0) : (i - 1)].s_pos_x != 0 - && s_n + 1 < 7) + && s_n + 1 < 7) { ft_get_next_sprite(clist, s_n + 1, c + 1, 0); } @@ -53,6 +54,7 @@ void x = 1; y = 1; i = 0; + clist->mlist.sprite_nbr[0] = 0; while (clist->mlist.map[y]) { while (clist->mlist.map[y][x]) |