From 2f819c87685e6ad60bcde0df7944e92f4694f2d2 Mon Sep 17 00:00:00 2001
From: salaaad2 <arthurdurant263@gmail.com>
Date: Sat, 15 Feb 2020 20:29:43 +0100
Subject: pepere :^) !

---
 inc/cub3d_structs.h | 1 +
 1 file changed, 1 insertion(+)

(limited to 'inc')

diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index 1bf2bca..b25f473 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -38,6 +38,7 @@ typedef struct		s_img
 	int				img_h;
 	int				tex_x;
 	int				tex_y;
+	int				w_side;
 
 }					t_img;
 
-- 
cgit v1.2.3


From 8a89388d397b50f2c70cef05f8fa6cfa10cc213c Mon Sep 17 00:00:00 2001
From: salaaad2 <arthurdurant263@gmail.com>
Date: Mon, 17 Feb 2020 16:27:35 +0100
Subject: small but important changes

---
 inc/cub3d.h         | 2 ++
 inc/cub3d_structs.h | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

(limited to 'inc')

diff --git a/inc/cub3d.h b/inc/cub3d.h
index 386f658..04033b0 100644
--- a/inc/cub3d.h
+++ b/inc/cub3d.h
@@ -30,6 +30,8 @@
 
 int8_t				ft_init_cub3d(t_cub **clist);
 t_map				*ft_init_map(void);
+void				ft_wall_tex_init(t_cub *clist);
+void				ft_choose_tex(t_cub *clist);
 void				ft_hooks_and_loops(t_win *wl, t_cub *cl);
 int					ft_key_event(int keycode, t_cub *clist);
 int					ft_click_close(int keycode, t_cub *clist);
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;
-- 
cgit v1.2.3