aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_detect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_detect.c')
-rw-r--r--src/ft_detect.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/ft_detect.c b/src/ft_detect.c
index e91ca50..7153123 100644
--- a/src/ft_detect.c
+++ b/src/ft_detect.c
@@ -62,12 +62,6 @@ ft_detect(t_cub *cl)
cl->rlist.sqy += cl->mlist->y_step;
cl->rlist.side = 1;
}
- /* ft_printf("sqx [%zu]\t", cl->rlist.sqx); */
- /* ft_printf("sqy [%zu]\n", cl->rlist.sqy); */
- /* (cl->rlist.sqx == 0) ? (cl->rlist.sqx = 1) : 0; */
- /* (cl->rlist.sqy == 0) ? (cl->rlist.sqy = 1) : 0; */
- (cl->rlist.sqx >= cl->mlist->map_h) ? (cl->rlist.sqx = 1) : 0;
- (cl->rlist.sqy >= cl->mlist->map_w) ? (cl->rlist.sqy = 1) : 0;
if (cl->mlist->map[cl->rlist.sqx][cl->rlist.sqy] == '1')
cl->rlist.hit = 1;
}