diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-29 17:34:48 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-29 17:34:48 +0200 |
commit | 69ca60b6f989dedc94c2e25ab9927b26d63cbdf8 (patch) | |
tree | 28fb01bf9380925e60c19caaf967cb28685ca3bd /src/ft_draw_sprite_extra.c | |
parent | The greatest (diff) | |
download | 42-cub3d-69ca60b6f989dedc94c2e25ab9927b26d63cbdf8.tar.gz 42-cub3d-69ca60b6f989dedc94c2e25ab9927b26d63cbdf8.tar.bz2 42-cub3d-69ca60b6f989dedc94c2e25ab9927b26d63cbdf8.tar.xz 42-cub3d-69ca60b6f989dedc94c2e25ab9927b26d63cbdf8.tar.zst 42-cub3d-69ca60b6f989dedc94c2e25ab9927b26d63cbdf8.zip |
Norm
Diffstat (limited to 'src/ft_draw_sprite_extra.c')
-rw-r--r-- | src/ft_draw_sprite_extra.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ft_draw_sprite_extra.c b/src/ft_draw_sprite_extra.c index ba2dac5..c201566 100644 --- a/src/ft_draw_sprite_extra.c +++ b/src/ft_draw_sprite_extra.c @@ -59,9 +59,7 @@ void ft_sort_sprites(cl, -1, -1); while (++j < cl->big_t_val) { - sprite = - cl->sprites[(int8_t)cl->big_t[j][2]] - [(int16_t)cl->big_t[j][3]]; + sprite = cl->sprites[(int8_t)cl->big_t[j][2]][(int32_t)cl->big_t[j][3]]; sprite.current_sprite = (int8_t)cl->big_t[j][1]; sprite.spritey = sprite.s_pos_x - (cl->plist.pos_x - 0.5); sprite.spritex = sprite.s_pos_y - (cl->plist.pos_y - 0.5); |