Fix software splats not being clipped by ceiling walls

This commit is contained in:
Hannu Hanhi 2022-01-14 20:11:49 +02:00
parent 93512ae9f9
commit d0966f123f

View file

@ -482,7 +482,7 @@ static void R_RasterizeFloorSplat(floorsplat_t *pSplat, vector2_t *verts, visspr
continue;
for (i = x1; i <= x2; i++)
cliptab[i] = (y >= mfloorclip[i]);
cliptab[i] = (y >= mfloorclip[i] || y <= mceilingclip[i]);
// clip left
while (cliptab[x1])