aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_sprite_spawns.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 22:46:00 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 22:46:00 +0100
commitfb8ca31ee232fd4db9dd05a088b5fc7b3e83a5a3 (patch)
tree9b842ddd18c30696af19efffcd2241f02c580c7c /src/ft_get_sprite_spawns.c
parentBug fix (diff)
parentfatfingers master (diff)
download42-cub3d-fb8ca31ee232fd4db9dd05a088b5fc7b3e83a5a3.tar.gz
42-cub3d-fb8ca31ee232fd4db9dd05a088b5fc7b3e83a5a3.tar.bz2
42-cub3d-fb8ca31ee232fd4db9dd05a088b5fc7b3e83a5a3.tar.xz
42-cub3d-fb8ca31ee232fd4db9dd05a088b5fc7b3e83a5a3.tar.zst
42-cub3d-fb8ca31ee232fd4db9dd05a088b5fc7b3e83a5a3.zip
Merge branch 'better_sprites'
Diffstat (limited to 'src/ft_get_sprite_spawns.c')
-rw-r--r--src/ft_get_sprite_spawns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_get_sprite_spawns.c b/src/ft_get_sprite_spawns.c
index da883b2..d7b6677 100644
--- a/src/ft_get_sprite_spawns.c
+++ b/src/ft_get_sprite_spawns.c
@@ -29,7 +29,7 @@ void
{
if (clist->mlist.map[y][x] == c)
{
- clist->mlist.sprite_nbr++;
+ clist->mlist.sprite_nbr[s_n]++;
clist->sprites[s_n][i].s_pos_x = x;
clist->sprites[s_n][i].s_pos_y = y;
i++;
@@ -60,7 +60,7 @@ void
{
if (ft_ischarset("2", clist->mlist.map[y][x]))
{
- clist->mlist.sprite_nbr++;
+ clist->mlist.sprite_nbr[0]++;
clist->sprites[0][i].s_pos_x = x;
clist->sprites[0][i].s_pos_y = y;
i++;