From a2b51665acaf8c08fdbf1cde1a5558bd6ef87574 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 28 Jun 2012 05:22:40 +0000 Subject: [PATCH] - Try to keep voxels from shifting up and down depending on how far you are above or below them. SVN r3714 (trunk) --- src/r_things.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_things.cpp b/src/r_things.cpp index 7092a0658..447b10d04 100644 --- a/src/r_things.cpp +++ b/src/r_things.cpp @@ -2317,7 +2317,7 @@ void R_DrawVoxel(fixed_t dasprx, fixed_t daspry, fixed_t dasprz, angle_t daspran ggyinc[i] = y; y += gyinc; } - syoff = DivScale21(globalposz - dasprz, dazscale) + (mip->PivotZ << 7); + syoff = DivScale21(globalposz - dasprz, FixedMul(dazscale, 0xE900)) + (mip->PivotZ << 7); yoff = (abs(gxinc) + abs(gyinc)) >> 1; for (cnt = 0; cnt < 8; cnt++)