diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-28 19:22:58 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-28 19:22:58 +0100 |
commit | 36e4ca1eeffa78d57767fced53fd16df17d75373 (patch) | |
tree | fcfc0dcfb5b39c7b026d577194f10f34fa3f3771 /src/ft_detect.c | |
parent | Parsed (diff) | |
download | 42-cub3d-36e4ca1eeffa78d57767fced53fd16df17d75373.tar.gz 42-cub3d-36e4ca1eeffa78d57767fced53fd16df17d75373.tar.bz2 42-cub3d-36e4ca1eeffa78d57767fced53fd16df17d75373.tar.xz 42-cub3d-36e4ca1eeffa78d57767fced53fd16df17d75373.tar.zst 42-cub3d-36e4ca1eeffa78d57767fced53fd16df17d75373.zip |
L is now crapaud and you can pass through :^)
Diffstat (limited to 'src/ft_detect.c')
-rw-r--r-- | src/ft_detect.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_detect.c b/src/ft_detect.c index 10d7147..a59896a 100644 --- a/src/ft_detect.c +++ b/src/ft_detect.c @@ -74,7 +74,9 @@ void cl->rlist.sqy += cl->mlist->y_step; cl->rlist.side = 1; } - if (cl->mlist->map[cl->rlist.sqx][cl->rlist.sqy] == '1') + if (cl->mlist->map[cl->rlist.sqx][cl->rlist.sqy] == '1' || + cl->mlist->map[cl->rlist.sqx][cl->rlist.sqy] == 'L') cl->rlist.hit = 1; + } } |