diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_check_map_line.c | 4 |
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) { |