From 5f28ff497e19d85a0dd60d15ecd1fec7a3617931 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 30 Mar 2020 15:19:08 +0200 Subject: Norm --- src/ft_get_sprite_spawns.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ft_get_sprite_spawns.c b/src/ft_get_sprite_spawns.c index 459b1c9..21c4cb8 100644 --- a/src/ft_get_sprite_spawns.c +++ b/src/ft_get_sprite_spawns.c @@ -103,10 +103,10 @@ void uint8_t i; x = 1; - y = 1; + y = 0; i = 0; clist->mlist.sprite_nbr[0] = 0; - while (clist->mlist.map[y]) + while (clist->mlist.map[++y]) { while (clist->mlist.map[y][x]) { @@ -121,7 +121,6 @@ void x++; } x = 1; - y++; } ft_get_next_sprite(clist, 1, '3', 0); } -- cgit v1.2.3