mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-22 20:41:25 +00:00
Fix infinitely long splat spans
This commit is contained in:
parent
4273896311
commit
0e62cb2ada
1 changed files with 3 additions and 0 deletions
|
@ -268,6 +268,9 @@ void R_RenderFloorSplat(floorsplat_t *pSplat, vertex_t *verts, vissprite_t *vis)
|
|||
x2 = swap;
|
||||
}
|
||||
|
||||
if (x1 == INT16_MIN || x2 == INT16_MAX)
|
||||
continue;
|
||||
|
||||
if (x1 < 0)
|
||||
x1 = 0;
|
||||
if (x2 >= vid.width)
|
||||
|
|
Loading…
Reference in a new issue