aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_check_map_line.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-03 16:57:36 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-03 16:57:36 +0100
commitd4f853942aa2031c4bd85539ef9f3470967ffdc5 (patch)
treed2c5ffb0027860722185bf26b526757360ff1584 /src/ft_check_map_line.c
parenttweaks (diff)
parentGoing full stack is bav (diff)
download42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.tar.gz
42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.tar.bz2
42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.tar.xz
42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.tar.zst
42-cub3d-d4f853942aa2031c4bd85539ef9f3470967ffdc5.zip
Merge branch 'bmp'
Diffstat (limited to '')
-rw-r--r--src/ft_check_map_line.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ft_check_map_line.c b/src/ft_check_map_line.c
index 184e489..a3e60f5 100644
--- a/src/ft_check_map_line.c
+++ b/src/ft_check_map_line.c
@@ -24,15 +24,15 @@ static int8_t
return (-1);
}
if (ft_ischarset("NSEW", line[i]))
- clist->mlist->isspawn += 1;
- if (clist->mlist->isspawn > 1)
+ clist->mlist.isspawn += 1;
+ if (clist->mlist.isspawn > 1)
{
ft_sprintf(clist->errmsg, "%s", FT_ERR_MULT_SPAWN);
return (-1);
}
if (line[i] == 'L')
- clist->mlist->isnlvl += 1;
- if (clist->mlist->isnlvl > 1)
+ clist->mlist.isnlvl += 1;
+ if (clist->mlist.isnlvl > 1)
{
ft_sprintf(clist->errmsg, "%s", FT_ERR_MULT_NLVL);
return (-1);
@@ -100,7 +100,7 @@ int8_t
}
if (ft_check_side_walls(line, i, clist) < 0)
return (-1);
- if (ft_get_line_len(line) != clist->mlist->map_w)
+ if (ft_get_line_len(line) != clist->mlist.map_w)
{
ft_sprintf(clist->errmsg, "%s", FT_ERR_MAP_LEN);
return (-1);