Patch from Nuke.YKT to fix a y-flipped voxel rendering issue in Polymost

git-svn-id: https://svn.eduke32.com/eduke32@8727 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2020-03-12 00:58:45 +00:00 committed by Christoph Oelckers
parent a7e1d3f307
commit 4bdffa4f0f

View file

@ -1051,7 +1051,7 @@ int32_t polymost_voxdraw(voxmodel_t *m, tspriteptr_t const tspr)
zoff += m->piv.z;
zoff -= m->siz.z*.5f;
}
if ((globalorientation&8) && (sprite[tspr->owner].cstat&48)!=0) zoff = m->siz.z-zoff;
if (globalorientation&8) zoff = m->siz.z-zoff;
f = (65536.f*512.f) / ((float)xdimen*viewingrange);
g = 32.f / ((float)xdimen*gxyaspect);