aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d_structs.h
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2020-02-17 16:27:35 +0100
committersalaaad2 <arthurdurant263@gmail.com>2020-02-17 16:27:35 +0100
commit8a89388d397b50f2c70cef05f8fa6cfa10cc213c (patch)
treee010e46998fd02717135f60a6f03ec97f9b47f8d /inc/cub3d_structs.h
parentMerge branch 'master' of https://gitlab.com/JozanLeClerc/42-cub3d into tex_fmoen (diff)
download42-cub3d-8a89388d397b50f2c70cef05f8fa6cfa10cc213c.tar.gz
42-cub3d-8a89388d397b50f2c70cef05f8fa6cfa10cc213c.tar.bz2
42-cub3d-8a89388d397b50f2c70cef05f8fa6cfa10cc213c.tar.xz
42-cub3d-8a89388d397b50f2c70cef05f8fa6cfa10cc213c.tar.zst
42-cub3d-8a89388d397b50f2c70cef05f8fa6cfa10cc213c.zip
small but important changes
Diffstat (limited to '')
-rw-r--r--inc/cub3d_structs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index b25f473..07b1be1 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -38,8 +38,6 @@ typedef struct s_img
int img_h;
int tex_x;
int tex_y;
- int w_side;
-
} t_img;
typedef struct s_rgb
@@ -86,6 +84,7 @@ typedef struct s_ray
size_t sqx;
size_t sqy;
uint8_t hit;
+ double wall_hit_x;
} t_ray;
typedef struct s_map
@@ -109,6 +108,7 @@ typedef struct s_map
typedef struct s_cub
{
+ uint8_t w_side;
uint8_t minimap;
struct s_win *wlist;
struct s_player *plist;