mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-22 10:02:01 +00:00
Fix floorsprites not being rendered when viewed from the bottom
This commit is contained in:
parent
9bb09cdc8c
commit
a91a55fb58
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…
Add table
Reference in a new issue