mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-21 18:32:08 +00:00
Fix floorsprites not being rendered when viewed from the bottom
This commit is contained in:
parent
831ccccdd6
commit
453f49cb77
1 changed files with 7 additions and 0 deletions
|
@ -261,6 +261,13 @@ void R_RenderFloorSplat(floorsplat_t *pSplat, vertex_t *verts, vissprite_t *vis)
|
|||
x1 = rastertab[y].minx>>FRACBITS;
|
||||
x2 = rastertab[y].maxx>>FRACBITS;
|
||||
|
||||
if (x1 > x2)
|
||||
{
|
||||
INT32 swap = x1;
|
||||
x1 = x2;
|
||||
x2 = swap;
|
||||
}
|
||||
|
||||
if (x1 < 0)
|
||||
x1 = 0;
|
||||
if (x2 >= vid.width)
|
||||
|
|
Loading…
Reference in a new issue