- Try to keep voxels from shifting up and down depending on how far you are above or below them.

SVN r3714 (trunk)
This commit is contained in:
Randy Heit 2012-06-28 05:22:40 +00:00
parent a3dc2149d4
commit a2b51665ac

View file

@ -2317,7 +2317,7 @@ void R_DrawVoxel(fixed_t dasprx, fixed_t daspry, fixed_t dasprz, angle_t daspran
ggyinc[i] = y; y += gyinc; 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; yoff = (abs(gxinc) + abs(gyinc)) >> 1;
for (cnt = 0; cnt < 8; cnt++) for (cnt = 0; cnt < 8; cnt++)