diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2020-02-21 19:31:27 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2020-02-21 19:31:27 +0100 |
commit | 4a07369a67e3f88417ac4a309852eadaf40f23d4 (patch) | |
tree | 30d1d024c80a6e99f2358d444a2a82937262d112 /src/ft_detect.c | |
parent | Freed leaks (diff) | |
download | 42-cub3d-4a07369a67e3f88417ac4a309852eadaf40f23d4.tar.gz 42-cub3d-4a07369a67e3f88417ac4a309852eadaf40f23d4.tar.bz2 42-cub3d-4a07369a67e3f88417ac4a309852eadaf40f23d4.tar.xz 42-cub3d-4a07369a67e3f88417ac4a309852eadaf40f23d4.tar.zst 42-cub3d-4a07369a67e3f88417ac4a309852eadaf40f23d4.zip |
add threaded music
Diffstat (limited to '')
-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; } } |