diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-21 19:36:09 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-02-21 19:36:09 +0100 |
commit | 06ad364a0dad99bc330ac5d4ec64cc6d44bbed25 (patch) | |
tree | 71c34fe71bf31b91941122a1a3ceccedf47ad8e6 /src/ft_detect.c | |
parent | Makefile update (diff) | |
parent | add threaded music (diff) | |
download | 42-cub3d-06ad364a0dad99bc330ac5d4ec64cc6d44bbed25.tar.gz 42-cub3d-06ad364a0dad99bc330ac5d4ec64cc6d44bbed25.tar.bz2 42-cub3d-06ad364a0dad99bc330ac5d4ec64cc6d44bbed25.tar.xz 42-cub3d-06ad364a0dad99bc330ac5d4ec64cc6d44bbed25.tar.zst 42-cub3d-06ad364a0dad99bc330ac5d4ec64cc6d44bbed25.zip |
Merge branch 'sprites' of gitlab.com into sprites
Diffstat (limited to 'src/ft_detect.c')
-rw-r--r-- | src/ft_detect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_detect.c b/src/ft_detect.c index 10d7147..fc49a2d 100644 --- a/src/ft_detect.c +++ b/src/ft_detect.c @@ -74,7 +74,8 @@ 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] == '2') cl->rlist.hit = 1; } } |