aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_raycasting.c
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2020-03-05 22:01:22 +0100
committersalaaad2 <arthurdurant263@gmail.com>2020-03-05 22:01:22 +0100
commit82f823ceb63d76ce052db3bca74842fe37394eb4 (patch)
tree8e4f3fc4b36027560dad63da91f91f0fc9db2dde /src/ft_raycasting.c
parentdebugging... (diff)
download42-cub3d-82f823ceb63d76ce052db3bca74842fe37394eb4.tar.gz
42-cub3d-82f823ceb63d76ce052db3bca74842fe37394eb4.tar.bz2
42-cub3d-82f823ceb63d76ce052db3bca74842fe37394eb4.tar.xz
42-cub3d-82f823ceb63d76ce052db3bca74842fe37394eb4.tar.zst
42-cub3d-82f823ceb63d76ce052db3bca74842fe37394eb4.zip
fuck
Diffstat (limited to '')
-rw-r--r--src/ft_raycasting.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_raycasting.c b/src/ft_raycasting.c
index 0cd4cc6..925711f 100644
--- a/src/ft_raycasting.c
+++ b/src/ft_raycasting.c
@@ -54,7 +54,9 @@ void
tmp_b = cl->plist->dir_y;
sprite.spritex = sprite.spritex - (cl->plist->pos_x - 0.5);
sprite.spritey = sprite.spritey - (cl->plist->pos_y - 0.5);
- printf("[%f] [%f] x [%f] y [%f] [%d]\n", sprite.spritex, sprite.spritey, cl->plist->dir_x, cl->plist->dir_y, i);
+ /* sprite.transformx */
+ /* sprite.transformy */
+ printf("[%f] [%f] x [%f] y [%f] [%d]\n", sprite.spritex, sprite.spritey, sprite.transformx, sprite.transformy, i);
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 *