From 721b95e073135ad042c50d12b7bafc888634bb28 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 20 Mar 2020 14:53:08 +0100 Subject: Multiple fixes --- src/ft_parse_map.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/ft_parse_map.c') diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c index 79c00d2..785a816 100644 --- a/src/ft_parse_map.c +++ b/src/ft_parse_map.c @@ -109,6 +109,17 @@ void ft_get_nlvl_pos(&clist->mlist); ft_check_missing(clist); ft_set_minimap_scale(clist); - clist->currlvl += 1; + clist->currlvl += (clist->isdead == 0) ? (1) : (0); close(fd); + + + /* ====== MAP PRINT ====== */ + fd = 0; + ft_printf("=====================\n"); + while (clist->mlist.map[fd]) + { + ft_printf("[%s]\n", clist->mlist.map[fd]); + fd++; + } + ft_printf("\n\n"); } -- cgit v1.2.3