aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_raycasting.c
diff options
context:
space:
mode:
authorsalaaad2 <arthudurant263@gmail.com>2020-02-24 23:14:16 +0100
committersalaaad2 <arthudurant263@gmail.com>2020-02-24 23:14:16 +0100
commit3363be36b7ffe90fc335e07ebb1dae14366216e8 (patch)
tree45378a3c0c54dde26d9a47ea49d5ca20489bfd99 /src/ft_raycasting.c
parentfound 2 infinit loops hehe (diff)
download42-cub3d-3363be36b7ffe90fc335e07ebb1dae14366216e8.tar.gz
42-cub3d-3363be36b7ffe90fc335e07ebb1dae14366216e8.tar.bz2
42-cub3d-3363be36b7ffe90fc335e07ebb1dae14366216e8.tar.xz
42-cub3d-3363be36b7ffe90fc335e07ebb1dae14366216e8.tar.zst
42-cub3d-3363be36b7ffe90fc335e07ebb1dae14366216e8.zip
gang
Diffstat (limited to '')
-rw-r--r--src/ft_raycasting.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ft_raycasting.c b/src/ft_raycasting.c
index 626ced4..5bf0785 100644
--- a/src/ft_raycasting.c
+++ b/src/ft_raycasting.c
@@ -17,7 +17,7 @@
#include <stdlib.h>
#include <math.h>
-static void
+void
ft_calc_sprite(t_cub *cl)
{
cl->sp_list.s_x = cl->sp_list.s_pos_x - cl->plist->pos_x;
@@ -57,7 +57,7 @@ void
cl->sp_list.s_end_x = cl->wlist->x_size - 1;
/*ft_printf("start x: %d\nstart y : %d\n", cl->sp_list.s_start_x, cl->sp_list.s_start_y);*/
/*ft_printf("end x: %d\nend y : %d\n", cl->sp_list.s_end_x, cl->sp_list.s_end_y);*/
- /*ft_draw_sprite(cl);*/
+ ft_draw_sprite(cl);
}
@@ -117,7 +117,6 @@ void
i = 0;
wl = cl->wlist;
- ft_calc_sprite(cl);
while (i < wl->x_size)
{
ft_initray(cl, i);