aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_detect.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-02-21 19:36:09 +0100
committerRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-02-21 19:36:09 +0100
commit06ad364a0dad99bc330ac5d4ec64cc6d44bbed25 (patch)
tree71c34fe71bf31b91941122a1a3ceccedf47ad8e6 /src/ft_detect.c
parentMakefile update (diff)
parentadd threaded music (diff)
download42-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 '')
-rw-r--r--src/ft_detect.c3
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;
}
}