aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d.h6
-rw-r--r--inc/cub3d_structs.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/inc/cub3d.h b/inc/cub3d.h
index 3875adc..e97af59 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -120,7 +120,7 @@ uint8_t ft_use_args(int argc, const char *argv[],
*/
void ft_castray(t_cub *cl);
-void ft_floor_cast(uint16_t y, t_cub *cl);
+void ft_floor_cast(t_cub *cl);
void ft_detect(t_cub *cl);
/*
@@ -136,8 +136,8 @@ uint8_t ft_free_words(char **words);
int8_t ft_warp_level(t_cub *cl);
int ft_exit(uint8_t exit_code, t_cub *clist);
uint32_t ft_rgb_to_hex(t_rgb rgb);
-uint32_t ft_darken_ceil(t_rgb rgb, int32_t y, t_cub *cl);
-uint32_t ft_darken_floor(t_rgb rgb, int32_t y, t_cub *cl);
t_bmp_rgb ft_hex_to_rgb(uint32_t color);
+uint32_t ft_darken_ceil(t_rgb rgb, int32_t y, t_cub *cl);
+uint32_t ft_darken_floor(t_rgb rgb, float dist, t_cub *cl);
# endif
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index d59c25e..b8a61ac 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -135,8 +135,8 @@ typedef struct s_ray
float y_side_dist;
float x_delta_dist;
float y_delta_dist;
- float floor_x;
- float floor_y;
+ double floor_x_wall;
+ double floor_y_wall;
int16_t cell_x;
int16_t cell_y;
int16_t wall_t;
@@ -202,7 +202,7 @@ typedef struct s_cub
struct s_img img;
struct s_rgb f_rgb;
struct s_rgb c_rgb;
- struct s_img tlist[6];
+ struct s_img tlist[7];
struct s_sprite sp_list;
} t_cub;