aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_raycasting.c
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2020-02-28 15:30:53 +0100
committersalaaad2 <arthurdurant263@gmail.com>2020-02-28 15:30:53 +0100
commit8f852afcfa170070b6f0ac2e321546990d87e401 (patch)
treec75ea70c8de7d3a7e349ae8d10adec1eab5917ae /src/ft_raycasting.c
parentlets GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO... (diff)
download42-cub3d-8f852afcfa170070b6f0ac2e321546990d87e401.tar.gz
42-cub3d-8f852afcfa170070b6f0ac2e321546990d87e401.tar.bz2
42-cub3d-8f852afcfa170070b6f0ac2e321546990d87e401.tar.xz
42-cub3d-8f852afcfa170070b6f0ac2e321546990d87e401.tar.zst
42-cub3d-8f852afcfa170070b6f0ac2e321546990d87e401.zip
gang
Diffstat (limited to 'src/ft_raycasting.c')
-rw-r--r--src/ft_raycasting.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ft_raycasting.c b/src/ft_raycasting.c
index e7cc4ef..0173fe6 100644
--- a/src/ft_raycasting.c
+++ b/src/ft_raycasting.c
@@ -49,6 +49,7 @@ void
sprite = cl->sprites;
sprite.spritex = (sprite.spritex + 1) - cl->plist->pos_x;
sprite.spritey = (sprite.spritey + 1) - cl->plist->pos_y;
+ printf("%f%f\n", sprite.spritex, sprite.spritey);
sprite.invdet = 1.0 / (cl->plist->plane_x *
cl->plist->dir_y - cl->plist->dir_x * cl->plist->plane_y);
sprite.transformx = sprite.invdet * (cl->plist->dir_y *