diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-23 22:31:15 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-23 22:31:15 +0100 |
commit | 5ad03a84ee06712ef4331a173c710657da70d0d0 (patch) | |
tree | bc5cef668090ea62ddff826ca9f89dabaeedd50f /src/ft_floor_cast.c | |
parent | Some threads (diff) | |
download | 42-cub3d-5ad03a84ee06712ef4331a173c710657da70d0d0.tar.gz 42-cub3d-5ad03a84ee06712ef4331a173c710657da70d0d0.tar.bz2 42-cub3d-5ad03a84ee06712ef4331a173c710657da70d0d0.tar.xz 42-cub3d-5ad03a84ee06712ef4331a173c710657da70d0d0.tar.zst 42-cub3d-5ad03a84ee06712ef4331a173c710657da70d0d0.zip |
got work to do
Diffstat (limited to 'src/ft_floor_cast.c')
-rw-r--r-- | src/ft_floor_cast.c | 10 |
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); } |