diff options
Diffstat (limited to 'src/ft_shoot.c')
-rw-r--r-- | src/ft_shoot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_shoot.c b/src/ft_shoot.c index 7336a80..ad5cfc8 100644 --- a/src/ft_shoot.c +++ b/src/ft_shoot.c @@ -104,8 +104,8 @@ void pl = &cl->plist; cl->rlist.y_ray_pos = pl->pos_y; cl->rlist.x_ray_pos = pl->pos_x; - cl->rlist.y_ray_dir = pl->dir_y; - cl->rlist.x_ray_dir = pl->dir_x; + cl->rlist.y_ray_dir = -pl->dir_y; + cl->rlist.x_ray_dir = -pl->dir_x; cl->rlist.sqy = (uint64_t)cl->rlist.y_ray_pos; cl->rlist.sqx = (uint64_t)cl->rlist.x_ray_pos; ft_detection_init_x(cl); |