From 74c7156ece4d4abb7ebd5bb8886a84ac2713380e Mon Sep 17 00:00:00 2001
From: Rudy Bousset <rbousset@z2r5p6.le-101.fr>
Date: Sun, 8 Mar 2020 16:17:27 +0100
Subject: Removed bloat

---
 inc/cub3d_structs.h   | 9 ---------
 src/ft_draw_verline.c | 6 +++---
 src/ft_init_map.c     | 2 --
 3 files changed, 3 insertions(+), 14 deletions(-)

diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index b8a61ac..cba13c0 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -122,23 +122,16 @@ typedef struct			s_ray
 {
 	uint16_t			line_h;
 	float				wall_dist;
-	float				row_dist;
 	float				x_ray_pos;
 	float				y_ray_pos;
 	float				x_ray_dir;
 	float				y_ray_dir;
-	float				x_ray_dir_f;
-	float				y_ray_dir_f;
-	float				x_ray_dir_f_bis;
-	float				y_ray_dir_f_bis;
 	float				x_side_dist;
 	float				y_side_dist;
 	float				x_delta_dist;
 	float				y_delta_dist;
 	double				floor_x_wall;
 	double				floor_y_wall;
-	int16_t				cell_x;
-	int16_t				cell_y;
 	int16_t				wall_t;
 	int16_t				wall_b;
 	uint8_t				side;
@@ -166,8 +159,6 @@ typedef struct			s_map
 	char				**mcmd_words;
 	int8_t				x_step;
 	int8_t				y_step;
-	int8_t				x_floor_step;
-	int8_t				y_floor_step;
 	size_t				map_w;
 	size_t				map_h;
 	size_t				mapl_len;
diff --git a/src/ft_draw_verline.c b/src/ft_draw_verline.c
index 915e513..3d0fea3 100644
--- a/src/ft_draw_verline.c
+++ b/src/ft_draw_verline.c
@@ -56,9 +56,9 @@ static void
 		cl->tlist[6].tex_y = (cl->tlist[6].tex_y > 0)
 			? (cl->tlist[6].tex_y) : (-cl->tlist[6].tex_y);
 		ft_draw_floor_tex(cl, y, x, cl->tlist[6].tex_y);
-		*(int*)(cl->img.ptr +
-				(x * 4 + (y * cl->img.sizeline)))
-				= ft_darken_floor(cl->f_rgb, weight, cl);
+		/* *(int*)(cl->img.ptr + */
+		/* 		(x * 4 + (y * cl->img.sizeline))) */
+		/* 		= ft_darken_floor(cl->f_rgb, weight, cl); */
 		y++;
 	}
 }
diff --git a/src/ft_init_map.c b/src/ft_init_map.c
index 965bf8e..1c12189 100644
--- a/src/ft_init_map.c
+++ b/src/ft_init_map.c
@@ -49,8 +49,6 @@ int8_t
 	mlist->mapl_len = 0;
 	mlist->x_step = 0;
 	mlist->y_step = 0;
-	mlist->x_floor_step = 0;
-	mlist->y_floor_step = 0;
 	mlist->line_chk = 0;
 	mlist->map_start = 0;
 	mlist->isspawn = 0;
-- 
cgit v1.2.3