aboutsummaryrefslogtreecommitdiffstats
path: root/src
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 /src
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--src/ft_draw_verline.c6
-rw-r--r--src/ft_init_map.c2
2 files changed, 3 insertions, 5 deletions
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;