diff options
Diffstat (limited to 'src/ft_detect.c')
-rw-r--r-- | src/ft_detect.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_detect.c b/src/ft_detect.c index a944a0f..c7bdcbb 100644 --- a/src/ft_detect.c +++ b/src/ft_detect.c @@ -23,14 +23,14 @@ void if (cl->rlist.x_ray_dir < 0) { cl->mlist.y_step = -1; - cl->rlist.y_side_dist = (cl->rlist.y_ray_pos - + cl->rlist.y_side_dist = (cl->rlist.x_ray_pos - cl->rlist.sqx) * cl->rlist.y_delta_dist; } else { cl->mlist.y_step = 1; cl->rlist.y_side_dist = (cl->rlist.sqx + 1.0 - - cl->rlist.y_ray_pos) * cl->rlist.y_delta_dist; + cl->rlist.x_ray_pos) * cl->rlist.y_delta_dist; } } @@ -43,14 +43,14 @@ void if (cl->rlist.y_ray_dir < 0) { cl->mlist.x_step = -1; - cl->rlist.x_side_dist = (cl->rlist.x_ray_pos - + cl->rlist.x_side_dist = (cl->rlist.y_ray_pos - cl->rlist.sqy) * cl->rlist.x_delta_dist; } else { cl->mlist.x_step = 1; cl->rlist.x_side_dist = (cl->rlist.sqy + 1.0 - - cl->rlist.x_ray_pos) * cl->rlist.x_delta_dist; + cl->rlist.y_ray_pos) * cl->rlist.x_delta_dist; } } |