From 5f506ec0f62012fe42cee90141fa0586e7339aca Mon Sep 17 00:00:00 2001 From: helixhorned Date: Tue, 14 Feb 2012 23:13:16 +0000 Subject: [PATCH] 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 --- polymer/eduke32/build/src/engine.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index 08d1056c1..ff539a240 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -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);