aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_floor_cast.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_floor_cast.c')
-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);
}