aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_draw_sprite.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-14 17:45:51 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-14 17:45:51 +0200
commit329c93d7ed710dae24d560c7469acf12871a1363 (patch)
tree27a1841214cf359425548813cc1fe8c783515429 /src/ft_draw_sprite.c
parentReverting cave map (diff)
download42-cub3d-329c93d7ed710dae24d560c7469acf12871a1363.tar.gz
42-cub3d-329c93d7ed710dae24d560c7469acf12871a1363.tar.bz2
42-cub3d-329c93d7ed710dae24d560c7469acf12871a1363.tar.xz
42-cub3d-329c93d7ed710dae24d560c7469acf12871a1363.tar.zst
42-cub3d-329c93d7ed710dae24d560c7469acf12871a1363.zip
Doing norminette
Diffstat (limited to 'src/ft_draw_sprite.c')
-rw-r--r--src/ft_draw_sprite.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ft_draw_sprite.c b/src/ft_draw_sprite.c
index a127e31..2bf8274 100644
--- a/src/ft_draw_sprite.c
+++ b/src/ft_draw_sprite.c
@@ -51,9 +51,9 @@ void
{
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_y - cl->sprites[jt][it].s_pos_y) *
- (cl->plist.pos_y - cl->sprites[jt][it].s_pos_y));
+ (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));
}
it = -1;
}