aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_sprite_spawns.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-26 14:58:02 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-26 14:58:02 +0100
commitb5982b835d46ba6ae7363b60254ebfa2c3439a4d (patch)
tree453adf8d50610afab1318fbac62932ffdda9c308 /src/ft_get_sprite_spawns.c
parentimportant bug fix (diff)
download42-cub3d-b5982b835d46ba6ae7363b60254ebfa2c3439a4d.tar.gz
42-cub3d-b5982b835d46ba6ae7363b60254ebfa2c3439a4d.tar.bz2
42-cub3d-b5982b835d46ba6ae7363b60254ebfa2c3439a4d.tar.xz
42-cub3d-b5982b835d46ba6ae7363b60254ebfa2c3439a4d.tar.zst
42-cub3d-b5982b835d46ba6ae7363b60254ebfa2c3439a4d.zip
Solved 9th sprite problem
Diffstat (limited to '')
-rw-r--r--src/ft_get_sprite_spawns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_get_sprite_spawns.c b/src/ft_get_sprite_spawns.c
index f4d7e1e..e8eafa9 100644
--- a/src/ft_get_sprite_spawns.c
+++ b/src/ft_get_sprite_spawns.c
@@ -38,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);
}