aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_sprite_extra.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_draw_sprite_extra.c')
-rw-r--r--src/ft_draw_sprite_extra.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ft_draw_sprite_extra.c b/src/ft_draw_sprite_extra.c
index 57b0b86..c64d2c1 100644
--- a/src/ft_draw_sprite_extra.c
+++ b/src/ft_draw_sprite_extra.c
@@ -58,6 +58,10 @@ static int8_t
return (st_o + 7);
else if (st_o == 8)
return (15);
+ else if (st_o == 9)
+ return (17);
+ else if (st_o >= 10)
+ return (st_o + 8);
return (0);
}
@@ -71,7 +75,7 @@ void
i = -1;
j = -1;
ft_sort_sprites(cl, -1, -1);
- while (++j < 9)
+ while (++j < FT_TOTAL_SPRT)
{
while (++i < cl->mlist.sprite_nbr[cl->mlist.st_o[j]] && cl->mlist.st_o[j] != -1 )
{