diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-26 14:33:15 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-26 14:33:15 +0100 |
commit | 9967f9792bf4c828dd805a8e65cf20aabcf05f31 (patch) | |
tree | c34f13f075ff880116f01e7d9fa95f735a1a45f7 | |
parent | Cool malloc (diff) | |
download | 42-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
-rw-r--r-- | src/ft_draw_sprite.c | 1 |
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; } |