diff options
author | salaaad2 <arthudurant263@gmail.com> | 2020-03-16 19:24:29 +0100 |
---|---|---|
committer | salaaad2 <arthudurant263@gmail.com> | 2020-03-16 19:24:29 +0100 |
commit | 322f3191c5a76cf702d4ddd7b1122219be3f5779 (patch) | |
tree | 10410d334df5df0e05d3bc304d0639fed53600aa /src | |
parent | it just works (unpeu) (diff) | |
download | 42-cub3d-322f3191c5a76cf702d4ddd7b1122219be3f5779.tar.gz 42-cub3d-322f3191c5a76cf702d4ddd7b1122219be3f5779.tar.bz2 42-cub3d-322f3191c5a76cf702d4ddd7b1122219be3f5779.tar.xz 42-cub3d-322f3191c5a76cf702d4ddd7b1122219be3f5779.tar.zst 42-cub3d-322f3191c5a76cf702d4ddd7b1122219be3f5779.zip |
fix norme
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_draw_sprite.c | 8 | ||||
-rw-r--r-- | src/ft_draw_sprite_extra.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/ft_draw_sprite.c b/src/ft_draw_sprite.c index c4e305e..1294738 100644 --- a/src/ft_draw_sprite.c +++ b/src/ft_draw_sprite.c @@ -23,7 +23,7 @@ static void uint32_t tmp; uint32_t it; - it = *i; + it = *i; tmp = 0; if (dist_tab[it] < dist_tab[it + 1]) { @@ -61,9 +61,9 @@ void } it = -1; jt = -1; - while (++jt < cl->mlist.sprite_var) - while (++it < cl->mlist.sprite_nbr) - ft_sort_sprites_norme(dist_tab[jt], &it, jt, cl); + while (++jt < cl->mlist.sprite_var) + while (++it < cl->mlist.sprite_nbr) + ft_sort_sprites_norme(dist_tab[jt], &it, jt, cl); } static void diff --git a/src/ft_draw_sprite_extra.c b/src/ft_draw_sprite_extra.c index 25c9c7a..d81913c 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[j][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); |