mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-13 13:21:31 +00:00
Fix rendering gaps on polys with upper/lower textures
This commit is contained in:
parent
d5870e6f8a
commit
7e026824a4
1 changed files with 6 additions and 4 deletions
10
src/r_segs.c
10
src/r_segs.c
|
@ -3063,8 +3063,9 @@ void R_StoreWallRange(INT32 start, INT32 stop)
|
||||||
else
|
else
|
||||||
markceiling = false;
|
markceiling = false;
|
||||||
|
|
||||||
// Don't render the ceiling again when rendering polyobjects
|
// Don't mark ceiling flat lines for polys unless this line has an upper texture, otherwise we get flat leakage pulling downward
|
||||||
if (curline->polyseg)
|
// (If it DOES have an upper texture and we do this, the ceiling won't render at all)
|
||||||
|
if (curline->polyseg && !curline->sidedef->toptexture)
|
||||||
markceiling = false;
|
markceiling = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3076,8 +3077,9 @@ void R_StoreWallRange(INT32 start, INT32 stop)
|
||||||
else
|
else
|
||||||
markfloor = false;
|
markfloor = false;
|
||||||
|
|
||||||
// Don't render the floor again when rendering polyobjects
|
// Don't mark floor flat lines for polys unless this line has a lower texture, otherwise we get flat leakage pulling upward
|
||||||
if (curline->polyseg)
|
// (If it DOES have a lower texture and we do this, the floor won't render at all)
|
||||||
|
if (curline->polyseg && !curline->sidedef->bottomtexture)
|
||||||
markfloor = false;
|
markfloor = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue