aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_sprite_extra.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-26 14:58:02 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-26 14:58:02 +0100
commitb5982b835d46ba6ae7363b60254ebfa2c3439a4d (patch)
tree453adf8d50610afab1318fbac62932ffdda9c308 /src/ft_draw_sprite_extra.c
parentimportant bug fix (diff)
download42-cub3d-b5982b835d46ba6ae7363b60254ebfa2c3439a4d.tar.gz
42-cub3d-b5982b835d46ba6ae7363b60254ebfa2c3439a4d.tar.bz2
42-cub3d-b5982b835d46ba6ae7363b60254ebfa2c3439a4d.tar.xz
42-cub3d-b5982b835d46ba6ae7363b60254ebfa2c3439a4d.tar.zst
42-cub3d-b5982b835d46ba6ae7363b60254ebfa2c3439a4d.zip
Solved 9th sprite problem
Diffstat (limited to '')
-rw-r--r--src/ft_draw_sprite_extra.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ft_draw_sprite_extra.c b/src/ft_draw_sprite_extra.c
index 0830d2c..e592da0 100644
--- a/src/ft_draw_sprite_extra.c
+++ b/src/ft_draw_sprite_extra.c
@@ -61,8 +61,9 @@ void
{
while (++i < cl->mlist.sprite_nbr[j])
{
- sprite = cl->sprites[cl->mlist.st_o[j]][cl->mlist.sprite_order[cl->mlist
- .st_o[j]][i]];
+ sprite =
+ cl->sprites[cl->mlist.st_o[j]][cl->mlist.sprite_order[
+ cl->mlist.st_o[j]][i]];
sprite.current_sprite = (cl->mlist.st_o[j] == 0) ?
4 : cl->mlist.st_o[j] + 7;
sprite.spritey = sprite.s_pos_x - (cl->plist.pos_x - 0.5);