aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-26 14:33:15 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-26 14:33:15 +0100
commit9967f9792bf4c828dd805a8e65cf20aabcf05f31 (patch)
treec34f13f075ff880116f01e7d9fa95f735a1a45f7 /src
parentCool malloc (diff)
download42-cub3d-9967f9792bf4c828dd805a8e65cf20aabcf05f31.tar.gz
42-cub3d-9967f9792bf4c828dd805a8e65cf20aabcf05f31.tar.bz2
42-cub3d-9967f9792bf4c828dd805a8e65cf20aabcf05f31.tar.xz
42-cub3d-9967f9792bf4c828dd805a8e65cf20aabcf05f31.tar.zst
42-cub3d-9967f9792bf4c828dd805a8e65cf20aabcf05f31.zip
important bug fix
Diffstat (limited to 'src')
-rw-r--r--src/ft_draw_sprite.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ft_draw_sprite.c b/src/ft_draw_sprite.c
index 423080d..19ceb9f 100644
--- a/src/ft_draw_sprite.c
+++ b/src/ft_draw_sprite.c
@@ -52,6 +52,7 @@ void
(cl->plist.pos_x - cl->sprites[jt][it].s_pos_x) +
(cl->plist.pos_y - cl->sprites[jt][it].s_pos_y) *
(cl->plist.pos_y - cl->sprites[jt][it].s_pos_y));
+ cl->mlist.sprite_order[jt][it] = it;
}
it = -1;
}