aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_sprite_extra.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 22:47:46 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-18 22:47:46 +0100
commitc855933082c15539b73bb26e3e745c295e69d4d4 (patch)
tree3a3cd3a0eb9fa0d8c2ceb571d244177496ae59ed /src/ft_draw_sprite_extra.c
parentMerge branch 'master' into weaps (diff)
parentMerge branch 'better_sprites' (diff)
download42-cub3d-c855933082c15539b73bb26e3e745c295e69d4d4.tar.gz
42-cub3d-c855933082c15539b73bb26e3e745c295e69d4d4.tar.bz2
42-cub3d-c855933082c15539b73bb26e3e745c295e69d4d4.tar.xz
42-cub3d-c855933082c15539b73bb26e3e745c295e69d4d4.tar.zst
42-cub3d-c855933082c15539b73bb26e3e745c295e69d4d4.zip
Merge branch 'master' into weaps
Diffstat (limited to 'src/ft_draw_sprite_extra.c')
-rw-r--r--src/ft_draw_sprite_extra.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_draw_sprite_extra.c b/src/ft_draw_sprite_extra.c
index 9198e8d..f4ac6ee 100644
--- a/src/ft_draw_sprite_extra.c
+++ b/src/ft_draw_sprite_extra.c
@@ -58,10 +58,10 @@ void
i = 0;
j = 0;
- ft_sort_sprites(cl);
+ ft_sort_sprites(cl, -1, -1);
while (j < cl->mlist.sprite_var)
{
- while (i < cl->mlist.sprite_nbr)
+ while (i < cl->mlist.sprite_nbr[j])
{
sprite = cl->sprites[j][cl->mlist.sprite_order[j][i]];
sprite.current_sprite = (j == 0) ? 4 : j + 7;