Fix infinitely long splat spans

This commit is contained in:
Jaime Passos 2020-10-13 17:03:50 -03:00
parent 4273896311
commit 0e62cb2ada

View file

@ -268,6 +268,9 @@ void R_RenderFloorSplat(floorsplat_t *pSplat, vertex_t *verts, vissprite_t *vis)
x2 = swap; x2 = swap;
} }
if (x1 == INT16_MIN || x2 == INT16_MAX)
continue;
if (x1 < 0) if (x1 < 0)
x1 = 0; x1 = 0;
if (x2 >= vid.width) if (x2 >= vid.width)