aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_sprite_extra.c
diff options
context:
space:
mode:
authorsalaaad2 <arthudurant263@gmail.com>2020-03-16 19:14:11 +0100
committersalaaad2 <arthudurant263@gmail.com>2020-03-16 19:14:11 +0100
commit8ca4c9563629c60122ba998ad64ad2d999d0902a (patch)
treeec307a2dabc17fb95cada6e7dfe4ed7b165f9d41 /src/ft_draw_sprite_extra.c
parentfatfingered solution to the sprites problem, changes needed (diff)
download42-cub3d-8ca4c9563629c60122ba998ad64ad2d999d0902a.tar.gz
42-cub3d-8ca4c9563629c60122ba998ad64ad2d999d0902a.tar.bz2
42-cub3d-8ca4c9563629c60122ba998ad64ad2d999d0902a.tar.xz
42-cub3d-8ca4c9563629c60122ba998ad64ad2d999d0902a.tar.zst
42-cub3d-8ca4c9563629c60122ba998ad64ad2d999d0902a.zip
it just works (unpeu)
Diffstat (limited to 'src/ft_draw_sprite_extra.c')
-rw-r--r--src/ft_draw_sprite_extra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_draw_sprite_extra.c b/src/ft_draw_sprite_extra.c
index 696bdff..25c9c7a 100644
--- a/src/ft_draw_sprite_extra.c
+++ b/src/ft_draw_sprite_extra.c
@@ -68,7 +68,7 @@ void
{
while (i < cl->mlist.sprite_nbr)
{
- sprite = cl->sprites[j][cl->mlist.sprite_order[i]];
+ sprite = cl->sprites[j][cl->mlist.sprite_order[j][i]];
sprite.current_sprite = (j == 0) ? 4 : j + 7;
sprite.spritey = sprite.s_pos_x - (cl->plist.pos_x - 0.5);
sprite.spritex = sprite.s_pos_y - (cl->plist.pos_y - 0.5);