From f922d1ed3235e3ce61c4e74420ae31354eb829d9 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 2 Apr 2020 16:16:45 +0200 Subject: Revert this if needed, still sprites and collision to do --- src/ft_shoot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ft_shoot.c') 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); -- cgit v1.2.3