aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-04 15:00:24 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-04 15:00:24 +0100
commit61c649534bb5e951cd6c83527b9bb5eafa86cc25 (patch)
tree732ef752274b9d5e2fb7d7e8453e69b8cf0c6784 /src
parentFixed them maps (diff)
download42-cub3d-61c649534bb5e951cd6c83527b9bb5eafa86cc25.tar.gz
42-cub3d-61c649534bb5e951cd6c83527b9bb5eafa86cc25.tar.bz2
42-cub3d-61c649534bb5e951cd6c83527b9bb5eafa86cc25.tar.xz
42-cub3d-61c649534bb5e951cd6c83527b9bb5eafa86cc25.tar.zst
42-cub3d-61c649534bb5e951cd6c83527b9bb5eafa86cc25.zip
Removed map print
Diffstat (limited to '')
-rw-r--r--src/ft_draw_scene.c2
-rw-r--r--src/ft_parse_map.c14
2 files changed, 1 insertions, 15 deletions
diff --git a/src/ft_draw_scene.c b/src/ft_draw_scene.c
index 345c66b..1e16ba5 100644
--- a/src/ft_draw_scene.c
+++ b/src/ft_draw_scene.c
@@ -38,6 +38,6 @@ void
clist->img.ptr = mlx_get_data_addr(clist->img.img, &clist->img.bpp,
&clist->img.sizeline, &clist->img.endian);
ft_castray(clist);
- mlx_destroy_image(clist->wlist.wlx, clist->img.img);
ft_save_to_bmp();
+ mlx_destroy_image(clist->wlist.wlx, clist->img.img);
}
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c
index 2d5590e..3d19fdc 100644
--- a/src/ft_parse_map.c
+++ b/src/ft_parse_map.c
@@ -82,19 +82,6 @@ static void
ft_exit(FT_RET_NO_MAP, clist);
}
-static void
- ft_print_map(t_map *ml)
-{
- size_t i;
-
- i = 0;
- while (ml->map[i])
- {
- ft_printf("[%s]\n", ml->map[i]);
- i++;
- }
-}
-
void
ft_parse_map(const char *map_path, t_cub *clist)
{
@@ -115,7 +102,6 @@ void
ft_map_error(clist->errmsg, clist);
ft_check_map_last_line(clist);
ft_check_map_surrounds(&clist->mlist, clist);
- ft_print_map(&clist->mlist);
ft_get_player_spawn(&clist->plist, clist);
ft_get_nlvl_pos(&clist->mlist);
ft_check_missing(clist);