aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_sprite.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_draw_sprite.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_draw_sprite.c b/src/ft_draw_sprite.c
index 1294738..a196d96 100644
--- a/src/ft_draw_sprite.c
+++ b/src/ft_draw_sprite.c
@@ -18,10 +18,10 @@
#include <math.h>
static void
- ft_sort_sprites_norme(float *dist_tab, uint16_t *i, uint16_t j, t_cub *cl)
+ ft_sort_sprites_norme(float *dist_tab, uint16_t *i, uint16_t j, t_cub *cl)
{
uint32_t tmp;
- uint32_t it;
+ uint32_t it;
it = *i;
tmp = 0;
@@ -51,7 +51,7 @@ void
while (++it < cl->mlist.sprite_nbr)
{
dist_tab[jt][it] =
- ((cl->plist.pos_x - cl->sprites[jt][it].s_pos_x) *
+ ((cl->plist.pos_x - cl->sprites[jt][it].s_pos_x) *
(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));
@@ -60,7 +60,7 @@ void
it = -1;
}
it = -1;
- jt = -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);