diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_draw_scene.c | 2 | ||||
-rw-r--r-- | src/ft_parse_map.c | 14 |
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); |