From 088caacd77c673fe9e18a416aebe70172bf50da8 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 9 Mar 2020 00:46:44 +0100 Subject: FeelsAlmostGoodMan --- inc/cub3d_structs.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'inc/cub3d_structs.h') diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h index aff5663..a516036 100644 --- a/inc/cub3d_structs.h +++ b/inc/cub3d_structs.h @@ -143,6 +143,11 @@ typedef struct s_ray float x_f_ray_dir_bis; float y_f_ray_dir_bis; uint16_t p; + float row_dist; + float x_floor; + float y_floor; + int32_t x_cell; + int32_t y_cell; } t_ray; typedef struct s_map @@ -173,6 +178,8 @@ typedef struct s_map uint8_t scale; uint32_t nlx; uint32_t nly; + float x_floor_step; + float y_floor_step; } t_map; typedef struct s_cub -- cgit v1.2.3