aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_check_map_line.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-07 22:34:38 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-07 22:34:38 +0100
commit684c8a8d416fafec52b5dcba81453789b53b8391 (patch)
tree653145d30484a075b93c666273296e7c90b3a825 /src/ft_check_map_line.c
parentGot secret door bonus (diff)
download42-cub3d-684c8a8d416fafec52b5dcba81453789b53b8391.tar.gz
42-cub3d-684c8a8d416fafec52b5dcba81453789b53b8391.tar.bz2
42-cub3d-684c8a8d416fafec52b5dcba81453789b53b8391.tar.xz
42-cub3d-684c8a8d416fafec52b5dcba81453789b53b8391.tar.zst
42-cub3d-684c8a8d416fafec52b5dcba81453789b53b8391.zip
defines are bav
Diffstat (limited to 'src/ft_check_map_line.c')
-rw-r--r--src/ft_check_map_line.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_check_map_line.c b/src/ft_check_map_line.c
index 213d75c..7fa68b7 100644
--- a/src/ft_check_map_line.c
+++ b/src/ft_check_map_line.c
@@ -18,12 +18,12 @@
static int8_t
ft_first_checks(char *line, size_t i, t_cub *clist)
{
- if (!ft_ischarset("012NSEWLD ", line[i]))
+ if (!ft_ischarset(FT_CHRST_MAP_ENTRY, line[i]))
{
ft_sprintf(clist->errmsg, FT_ERR_ILL_MAP);
return (-1);
}
- if (ft_ischarset("NSEW", line[i]))
+ if (ft_ischarset(FT_CHRST_SPAWN, line[i]))
clist->mlist.isspawn += 1;
if (clist->mlist.isspawn > 1)
{