aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-03-08 16:17:27 +0100
committerRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-03-08 16:17:27 +0100
commit74c7156ece4d4abb7ebd5bb8886a84ac2713380e (patch)
tree699d81babcbcfbe8cd44a4c66d6b5fd357c00b94
parentLess retarded scaling and shit (diff)
download42-cub3d-74c7156ece4d4abb7ebd5bb8886a84ac2713380e.tar.gz
42-cub3d-74c7156ece4d4abb7ebd5bb8886a84ac2713380e.tar.bz2
42-cub3d-74c7156ece4d4abb7ebd5bb8886a84ac2713380e.tar.xz
42-cub3d-74c7156ece4d4abb7ebd5bb8886a84ac2713380e.tar.zst
42-cub3d-74c7156ece4d4abb7ebd5bb8886a84ac2713380e.zip
Removed bloat
Diffstat (limited to '')
-rw-r--r--inc/cub3d_structs.h9
-rw-r--r--src/ft_draw_verline.c6
-rw-r--r--src/ft_init_map.c2
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;