aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_parse_map.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-13 04:23:57 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-13 04:23:57 +0100
commit6714c479c5d9bcb025212de44ec92424458261d6 (patch)
tree73b7ebbaf1f40d36bb6d453826accd90188a5b10 /src/ft_parse_map.c
parentsounds (diff)
download42-cub3d-6714c479c5d9bcb025212de44ec92424458261d6.tar.gz
42-cub3d-6714c479c5d9bcb025212de44ec92424458261d6.tar.bz2
42-cub3d-6714c479c5d9bcb025212de44ec92424458261d6.tar.xz
42-cub3d-6714c479c5d9bcb025212de44ec92424458261d6.tar.zst
42-cub3d-6714c479c5d9bcb025212de44ec92424458261d6.zip
Huge bug on death
Diffstat (limited to 'src/ft_parse_map.c')
-rw-r--r--src/ft_parse_map.c3
1 files changed, 2 insertions, 1 deletions
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);
}