aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_detect.c
diff options
context:
space:
mode:
authorsalaaad2 <arthudurant263@gmail.com>2020-03-20 20:30:35 +0100
committersalaaad2 <arthudurant263@gmail.com>2020-03-20 20:30:35 +0100
commit14d4e44cb54758a2e9c045bddbe74479adef9f1d (patch)
treec0cc354238bb5b8008ad62ba4f00d25535211cf0 /src/ft_detect.c
parentBetter bounce (diff)
download42-cub3d-14d4e44cb54758a2e9c045bddbe74479adef9f1d.tar.gz
42-cub3d-14d4e44cb54758a2e9c045bddbe74479adef9f1d.tar.bz2
42-cub3d-14d4e44cb54758a2e9c045bddbe74479adef9f1d.tar.xz
42-cub3d-14d4e44cb54758a2e9c045bddbe74479adef9f1d.tar.zst
42-cub3d-14d4e44cb54758a2e9c045bddbe74479adef9f1d.zip
R E A L I S T I C S H O O T I N G
Diffstat (limited to '')
-rw-r--r--src/ft_detect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_detect.c b/src/ft_detect.c
index 7ec0473..0ef8831 100644
--- a/src/ft_detect.c
+++ b/src/ft_detect.c
@@ -14,7 +14,7 @@
#include <cub3d.h>
#include <math.h>
-static void
+void
ft_detection_init_y(t_cub *cl)
{
cl->rlist.y_delta_dist = sqrt(1 + (cl->rlist.x_ray_dir *
@@ -34,7 +34,7 @@ static void
}
}
-static void
+void
ft_detection_init_x(t_cub *cl)
{
cl->rlist.x_delta_dist = sqrt(1 + (cl->rlist.y_ray_dir *