From 3363be36b7ffe90fc335e07ebb1dae14366216e8 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Mon, 24 Feb 2020 23:14:16 +0100 Subject: gang --- src/ft_raycasting.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ft_raycasting.c') 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 #include -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); -- cgit v1.2.3