diff options
Diffstat (limited to 'src/ft_raycasting.c')
-rw-r--r-- | src/ft_raycasting.c | 5 |
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); |