aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_shoot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_shoot.c')
-rw-r--r--src/ft_shoot.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_shoot.c b/src/ft_shoot.c
index 29f5066..7336a80 100644
--- a/src/ft_shoot.c
+++ b/src/ft_shoot.c
@@ -102,12 +102,12 @@ void
wl = &cl->wlist;
pl = &cl->plist;
- cl->rlist.x_ray_pos = pl->pos_y;
- cl->rlist.y_ray_pos = pl->pos_x;
+ 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.sqy = (uint64_t)cl->rlist.x_ray_pos;
- cl->rlist.sqx = (uint64_t)cl->rlist.y_ray_pos;
+ 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);
ft_detection_init_y(cl);
ft_hitscan(cl, 0);