From 6714c479c5d9bcb025212de44ec92424458261d6 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 13 Mar 2020 04:23:57 +0100 Subject: Huge bug on death --- src/ft_parse_map.c | 3 ++- 1 file changed, 2 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 f1df73d..c5df30e 100644 --- a/src/ft_parse_map.c +++ b/src/ft_parse_map.c @@ -109,6 +109,7 @@ void ft_get_nlvl_pos(&clist->mlist); ft_check_missing(clist); ft_set_minimap_scale(clist); - clist->currlvl += 1; + if (!clist->plist.isdead) + clist->currlvl += 1; close(fd); } -- cgit v1.2.3