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.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ft_floor_cast.c b/src/ft_floor_cast.c
index 09e0493..180f401 100644
--- a/src/ft_floor_cast.c
+++ b/src/ft_floor_cast.c
@@ -61,17 +61,15 @@ static void
if (cl->mlist.isftex)
{
ft_set_tex_xy(6, rl, cl);
- }
- if (cl->mlist.isctex)
- {
- ft_set_tex_xy(7, rl, cl);
- }
- if (cl->mlist.isftex)
ft_draw_extra_tex(6, y, x, cl);
+ }
else
ft_draw_plain_horizontal(cl->f_rgb, cl, y, x);
if (cl->mlist.isctex && !cl->mlist.isskybox)
+ {
+ ft_set_tex_xy(7, rl, cl);
ft_draw_extra_tex(7, cl->wlist.y_size - y - 1, x, cl);
+ }
else if (!cl->mlist.isctex && !cl->mlist.isskybox)
ft_draw_plain_horizontal(cl->c_rgb, cl, cl->wlist.y_size - y - 1, x);
}