diff options
-rw-r--r-- | inc/cub3d_structs.h | 1 | ||||
-rw-r--r-- | src/ft_draw_textures.c | 8 | ||||
-rw-r--r-- | 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 <stdio.h> /* -** 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 <libft.h> #include <cub3d.h> #include <stdint.h> +#include <stdio.h> static void ft_collision(float old_y, float old_x, t_player *pl, t_map *ml) |