aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_check_map_line.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-11 10:16:48 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-11 10:16:48 +0100
commitc581c7e3543058f015bddf96d76ac2d771ea40a0 (patch)
treeb3c8fe72a65ac834fcd7edaef4e2887f49d53c90 /src/ft_check_map_line.c
parentParsed traps (diff)
download42-cub3d-c581c7e3543058f015bddf96d76ac2d771ea40a0.tar.gz
42-cub3d-c581c7e3543058f015bddf96d76ac2d771ea40a0.tar.bz2
42-cub3d-c581c7e3543058f015bddf96d76ac2d771ea40a0.tar.xz
42-cub3d-c581c7e3543058f015bddf96d76ac2d771ea40a0.tar.zst
42-cub3d-c581c7e3543058f015bddf96d76ac2d771ea40a0.zip
Nice parse
Diffstat (limited to '')
-rw-r--r--src/ft_check_map_line.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_check_map_line.c b/src/ft_check_map_line.c
index 7fa68b7..c88e1f5 100644
--- a/src/ft_check_map_line.c
+++ b/src/ft_check_map_line.c
@@ -37,6 +37,8 @@ static int8_t
ft_sprintf(clist->errmsg, FT_ERR_MULT_NLVL);
return (-1);
}
+ if (line[i] == 'T')
+ clist->mlist.istraps = 1;
return (0);
}