aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_detect.c
diff options
context:
space:
mode:
authorsalaaad2 <arthudurant263@gmail.com>2020-02-24 10:20:20 +0100
committersalaaad2 <arthudurant263@gmail.com>2020-02-24 10:20:20 +0100
commit9fc4434c0deac6a3537183266adb9e85f3883db8 (patch)
tree3c4a2e829da3aec0803ff9e8d7f7003ec82f596f /src/ft_detect.c
parentshpritz (diff)
download42-cub3d-9fc4434c0deac6a3537183266adb9e85f3883db8.tar.gz
42-cub3d-9fc4434c0deac6a3537183266adb9e85f3883db8.tar.bz2
42-cub3d-9fc4434c0deac6a3537183266adb9e85f3883db8.tar.xz
42-cub3d-9fc4434c0deac6a3537183266adb9e85f3883db8.tar.zst
42-cub3d-9fc4434c0deac6a3537183266adb9e85f3883db8.zip
tests
Diffstat (limited to '')
-rw-r--r--src/ft_detect.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ft_detect.c b/src/ft_detect.c
index fc49a2d..10d7147 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] == '2')
+ if (cl->mlist->map[cl->rlist.sqx][cl->rlist.sqy] == '1')
cl->rlist.hit = 1;
}
}