mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-21 10:57:15 -04:00
Fix rendering of voxels on top/bottom of screen (#2134)
This commit is contained in:
parent
2a0b5c05c5
commit
a4f5382ec9
@ -871,13 +871,14 @@ static void VX_DrawColumn (vissprite_t * spr, int x, int y)
|
||||
fixed_t uy0 = uy1;
|
||||
|
||||
// clip the slab vertically
|
||||
if (uy1 >= clip_y2) break;
|
||||
if (uy2 <= clip_y1) continue;
|
||||
if (uy1 >= clip_y2) uy1 = clip_y2;
|
||||
if (uy2 <= clip_y1) uy2 = clip_y1;
|
||||
|
||||
if (uy1 < clip_y1) uy1 = clip_y1;
|
||||
if (uy2 > clip_y2) uy2 = clip_y2;
|
||||
|
||||
boolean has_side = ((face & (ux > Bx ? B_face : A_face)) != 0);
|
||||
boolean has_side = ((face & (ux > Bx ? B_face : A_face)) != 0
|
||||
&& uy1 < clip_y2 && uy2 > clip_y1);
|
||||
|
||||
// handle the fuzz effect for Spectres
|
||||
if (shadow)
|
||||
|
Loading…
x
Reference in New Issue
Block a user