aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_parse_map.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-02-28 20:51:54 +0100
committerRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-02-28 20:51:54 +0100
commit733fd55d384eef1c89e0ad2a44beaee066182b50 (patch)
tree494e767707cd2bcecae33519f8d89f4888f5dde3 /src/ft_parse_map.c
parentGNL fix (diff)
download42-cub3d-733fd55d384eef1c89e0ad2a44beaee066182b50.tar.gz
42-cub3d-733fd55d384eef1c89e0ad2a44beaee066182b50.tar.bz2
42-cub3d-733fd55d384eef1c89e0ad2a44beaee066182b50.tar.xz
42-cub3d-733fd55d384eef1c89e0ad2a44beaee066182b50.tar.zst
42-cub3d-733fd55d384eef1c89e0ad2a44beaee066182b50.zip
Right but not perfect
Diffstat (limited to 'src/ft_parse_map.c')
-rw-r--r--src/ft_parse_map.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c
index 400bdd4..afb1d88 100644
--- a/src/ft_parse_map.c
+++ b/src/ft_parse_map.c
@@ -100,6 +100,10 @@ void
ft_get_player_spawn(clist->plist, clist);
ft_get_nlvl_pos(clist->mlist);
ft_check_missing(clist);
- ft_set_minimap_scale(clist);
+ if (clist->currlvl == 0)
+ {
+ ft_set_minimap_scale(clist);
+ clist->currlvl += 1;
+ }
close(fd);
}