aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_floor_cast.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-03-09 20:50:36 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-03-09 20:50:36 +0100
commitfcf4c36c2027d268afd7925785e8588fcb2d920c (patch)
treead08d56b5da3ddd89f58fd3796ece96176a3cbe3 /src/ft_floor_cast.c
parentIn progress, Makefile was bav back then (diff)
download42-cub3d-fcf4c36c2027d268afd7925785e8588fcb2d920c.tar.gz
42-cub3d-fcf4c36c2027d268afd7925785e8588fcb2d920c.tar.bz2
42-cub3d-fcf4c36c2027d268afd7925785e8588fcb2d920c.tar.xz
42-cub3d-fcf4c36c2027d268afd7925785e8588fcb2d920c.tar.zst
42-cub3d-fcf4c36c2027d268afd7925785e8588fcb2d920c.zip
Not done
Diffstat (limited to '')
-rw-r--r--src/ft_floor_cast.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_floor_cast.c b/src/ft_floor_cast.c
index 6111eca..104fb49 100644
--- a/src/ft_floor_cast.c
+++ b/src/ft_floor_cast.c
@@ -75,9 +75,9 @@ static void
ft_draw_extra_tex(6, y, x, cl);
else
ft_draw_plain_horizontal(cl->f_rgb, cl, y, x);
- if (cl->mlist.isctex)
+ if (cl->mlist.isctex && !cl->mlist.isskybox)
ft_draw_extra_tex(7, cl->wlist.y_size - y - 1, x, cl);
- else
+ else if (!cl->mlist.isctex && !cl->mlist.isskybox)
ft_draw_plain_horizontal(cl->c_rgb, cl, cl->wlist.y_size - y - 1, x);
}