From 1042dbf51a17cd055e764df669a91007261d638a Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Wed, 19 Feb 2020 19:24:52 +0100 Subject: tweak --- inc/cub3d_structs.h | 1 + src/ft_draw_textures.c | 8 ++++---- src/ft_key_loop.c | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index 2c77758..baae914 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -62,6 +62,7 @@ typedef struct s_ray { uint16_t line_h; float wall_dist; + float mid_dist; float x_ray_pos; float y_ray_pos; float x_ray_dir; diff --git a/src/ft_draw_textures.c b/src/ft_draw_textures.c index 25a6863..c718fd2 100644 --- a/src/ft_draw_textures.c +++ b/src/ft_draw_textures.c @@ -16,10 +16,10 @@ #include /* -** 0 : no -** 1 : so -** 2 : ea -** 3 : we +** 1 : no +** 0 : so +** 3 : ea +** 4 : we ** 4 : sprite */ diff --git a/src/ft_key_loop.c b/src/ft_key_loop.c index b902e33..0556384 100644 --- a/src/ft_key_loop.c +++ b/src/ft_key_loop.c @@ -13,6 +13,7 @@ #include #include #include +#include static void ft_collision(float old_y, float old_x, t_player *pl, t_map *ml) -- cgit v1.2.3