Fix sprite rendering glitches with r_usenewaspect=1 in 8-bit mode.

git-svn-id: https://svn.eduke32.com/eduke32@2341 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-02-14 23:13:16 +00:00
parent 1e2125ce29
commit 5f506ec0f6

View file

@ -5647,7 +5647,8 @@ static void drawsprite(int32_t snum)
x = (xp1-globalposx) + scale(xp2-xp1,z1,z1-z2);
y = (yp1-globalposy) + scale(yp2-yp1,z1,z1-z2);
yp1 = dmulscale14(x,cosglobalang,y,singlobalang);
yp1 = dmulscale14(x,cosviewingrangeglobalang,y,sinviewingrangeglobalang);
if (yp1 > 0)
{
xp1 = dmulscale14(y,cosglobalang,-x,singlobalang);