diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-03 20:26:03 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-03 20:26:03 +0100 |
commit | 3d5d770c0f43f9b4cfe59dc694f78b18803a7872 (patch) | |
tree | ae25b98e1dd04a82d9b44aea0649e4df5cd6dc45 /src/ft_check_map_line.c | |
parent | Now better handling (diff) | |
download | 42-cub3d-3d5d770c0f43f9b4cfe59dc694f78b18803a7872.tar.gz 42-cub3d-3d5d770c0f43f9b4cfe59dc694f78b18803a7872.tar.bz2 42-cub3d-3d5d770c0f43f9b4cfe59dc694f78b18803a7872.tar.xz 42-cub3d-3d5d770c0f43f9b4cfe59dc694f78b18803a7872.tar.zst 42-cub3d-3d5d770c0f43f9b4cfe59dc694f78b18803a7872.zip |
Changing stuff
Diffstat (limited to 'src/ft_check_map_line.c')
-rw-r--r-- | src/ft_check_map_line.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ft_check_map_line.c b/src/ft_check_map_line.c index a3e60f5..c5b4cdc 100644 --- a/src/ft_check_map_line.c +++ b/src/ft_check_map_line.c @@ -20,21 +20,21 @@ static int8_t { if (!ft_ischarset("012NSEWL ", line[i])) { - ft_sprintf(clist->errmsg, "%s", FT_ERR_ILL_MAP); + ft_sprintf(clist->errmsg, FT_ERR_ILL_MAP); return (-1); } if (ft_ischarset("NSEW", line[i])) clist->mlist.isspawn += 1; if (clist->mlist.isspawn > 1) { - ft_sprintf(clist->errmsg, "%s", FT_ERR_MULT_SPAWN); + ft_sprintf(clist->errmsg, FT_ERR_MULT_SPAWN); return (-1); } if (line[i] == 'L') clist->mlist.isnlvl += 1; if (clist->mlist.isnlvl > 1) { - ft_sprintf(clist->errmsg, "%s", FT_ERR_MULT_NLVL); + ft_sprintf(clist->errmsg, FT_ERR_MULT_NLVL); return (-1); } return (0); @@ -45,7 +45,7 @@ static int8_t { if (!ft_ischarset("1 ", line[i])) { - ft_sprintf(clist->errmsg, "%s", FT_ERR_ILL_MAP); + ft_sprintf(clist->errmsg, FT_ERR_MAP_WALLS); return (-1); } return (0); @@ -73,7 +73,7 @@ static int8_t { if (line[0] != '1' || line[i - 1] != '1') { - ft_sprintf(clist->errmsg, "%s", FT_ERR_ILL_ENTRY); + ft_sprintf(clist->errmsg, FT_ERR_MAP_WALLS); return (-1); } return (0); @@ -102,7 +102,7 @@ int8_t return (-1); if (ft_get_line_len(line) != clist->mlist.map_w) { - ft_sprintf(clist->errmsg, "%s", FT_ERR_MAP_LEN); + ft_sprintf(clist->errmsg, FT_ERR_MAP_LEN); return (-1); } return (0); |