diff options
Diffstat (limited to 'src/ft_draw_textures.c')
-rw-r--r-- | src/ft_draw_textures.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ft_draw_textures.c b/src/ft_draw_textures.c index 0f8bc43..533564d 100644 --- a/src/ft_draw_textures.c +++ b/src/ft_draw_textures.c @@ -53,11 +53,11 @@ void } else { - if (clist->rlist.side == 0 && clist->rlist.x_ray_dir < 0) + if (clist->rlist.side == 0 && clist->rlist.y_ray_dir < 0) clist->w_side = 1; - else if (clist->rlist.side == 0 && clist->rlist.x_ray_dir > 0) + else if (clist->rlist.side == 0 && clist->rlist.y_ray_dir > 0) clist->w_side = 0; - else if (clist->rlist.side == 1 && clist->rlist.y_ray_dir > 0) + else if (clist->rlist.side == 1 && clist->rlist.x_ray_dir > 0) clist->w_side = 3; else clist->w_side = 2; |