diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-07 22:26:28 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-07 22:26:28 +0100 |
commit | cfc2ab3f0c94234a98be573af394b23868166f84 (patch) | |
tree | d39ed1364e3c9ceb669decc625f4aa2c145cba8b /src/ft_detect.c | |
parent | DIVINE INTELLECT (diff) | |
download | 42-cub3d-cfc2ab3f0c94234a98be573af394b23868166f84.tar.gz 42-cub3d-cfc2ab3f0c94234a98be573af394b23868166f84.tar.bz2 42-cub3d-cfc2ab3f0c94234a98be573af394b23868166f84.tar.xz 42-cub3d-cfc2ab3f0c94234a98be573af394b23868166f84.tar.zst 42-cub3d-cfc2ab3f0c94234a98be573af394b23868166f84.zip |
Got secret door bonus
Diffstat (limited to 'src/ft_detect.c')
-rw-r--r-- | src/ft_detect.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ft_detect.c b/src/ft_detect.c index 8ab3d57..cbd8c58 100644 --- a/src/ft_detect.c +++ b/src/ft_detect.c @@ -74,8 +74,7 @@ void cl->rlist.sqy += cl->mlist.y_step; cl->rlist.side = 1; } - if (cl->mlist.map[cl->rlist.sqx][cl->rlist.sqy] == '1' || - cl->mlist.map[cl->rlist.sqx][cl->rlist.sqy] == 'L') + if (ft_ischarset("1LD", cl->mlist.map[cl->rlist.sqx][cl->rlist.sqy])) cl->rlist.hit = 1; } } |