From b3097103e6477eea13b78ac3c74de01445047960 Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Sun, 19 Nov 2023 23:13:49 +0700 Subject: [PATCH] fix voxel rendering clipping flicker (#1267) Earlier fix was not enough. --- src/r_voxel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_voxel.c b/src/r_voxel.c index 2f56ff6b..1c06a861 100644 --- a/src/r_voxel.c +++ b/src/r_voxel.c @@ -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) {