Skip to content
Snippets Groups Projects
Commit 453f49cb authored by Lactozilla's avatar Lactozilla :speech_balloon:
Browse files

Fix floorsprites not being rendered when viewed from the bottom

parent 831ccccd
No related branches found
No related tags found
1 merge request!1257New sprite features
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment