fix voxel rendering clipping flicker (#1267)

Earlier fix was not enough.
This commit is contained in:
Roman Fomin 2023-11-19 23:13:49 +07:00 committed by GitHub
parent 0f49f788bd
commit b3097103e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -769,7 +769,7 @@ static void VX_DrawColumn (vissprite_t * spr, int x, int y)
byte * dest = I_VideoBuffer + viewwindowy * linesize + viewwindowx;
// iterate over screen columns
uint32_t ux = ((Ax - 1) | (FRACUNIT - 1)) + 1;
fixed_t ux = (((int64_t)Ax - 1) | (FRACUNIT - 1)) + 1;
for (; ux < ((Cx > Bx) ? Cx : Bx) ; ux += FRACUNIT)
{