Rework previous commit to use a little less floating point math

git-svn-id: https://svn.eduke32.com/eduke32@7369 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-03-02 23:21:32 +00:00
parent 17fa3ea5ff
commit f31f31a17e

View file

@ -933,8 +933,9 @@ int32_t polymost_voxdraw(voxmodel_t *m, const uspritetype *tspr)
m0.z *= f; a0.z *= f;
k0 = (float) tspr->z;
k0 -= (tspr->yoffset*tspr->yrepeat)*4.f*m->bscale;
if (!(tspr->cstat&128)) k0 -= (m->piv.z*tspr->yrepeat)*4.f*m->bscale;
k0 -= ((tspr->yoffset * tspr->yrepeat) << 2) * m->bscale;
if (!(tspr->cstat & 128))
k0 -= (tspr->yrepeat << 2) * m->piv.z * m->bscale;
f = (65536.f*512.f) / ((float)xdimen*viewingrange);
g = 32.f / ((float)xdimen*gxyaspect);