diff options
author | salaaad2 <arthudurant263@gmail.com> | 2020-03-18 22:35:26 +0100 |
---|---|---|
committer | salaaad2 <arthudurant263@gmail.com> | 2020-03-18 22:35:26 +0100 |
commit | 768b140f6659e6e110d37a7f8557c3da3669155b (patch) | |
tree | 2fe3655ea1c4ea607e1f9da2a40a337f16f3cb07 /src/ft_draw_sprite_extra.c | |
parent | fatfingers 2 (diff) | |
download | 42-cub3d-768b140f6659e6e110d37a7f8557c3da3669155b.tar.gz 42-cub3d-768b140f6659e6e110d37a7f8557c3da3669155b.tar.bz2 42-cub3d-768b140f6659e6e110d37a7f8557c3da3669155b.tar.xz 42-cub3d-768b140f6659e6e110d37a7f8557c3da3669155b.tar.zst 42-cub3d-768b140f6659e6e110d37a7f8557c3da3669155b.zip |
fatfingers master
Diffstat (limited to '')
-rw-r--r-- | src/ft_draw_sprite_extra.c | 4 |
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; |