From 768b140f6659e6e110d37a7f8557c3da3669155b Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Wed, 18 Mar 2020 22:35:26 +0100 Subject: fatfingers master --- src/ft_get_sprite_spawns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 3a44f56..e0b37b5 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++; @@ -59,7 +59,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++; -- cgit v1.2.3