From e71bc9d19d49c8cfa5f6429347c8f96757c02743 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 26 May 2013 18:42:59 +0000 Subject: [PATCH] Polymost: fix 'zadd' DEF token handling. (Polymer has it right.) git-svn-id: https://svn.eduke32.com/eduke32@3819 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/mdsprite.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/polymer/eduke32/build/src/mdsprite.c b/polymer/eduke32/build/src/mdsprite.c index 9ac301b80..2a72d6e8c 100644 --- a/polymer/eduke32/build/src/mdsprite.c +++ b/polymer/eduke32/build/src/mdsprite.c @@ -2064,16 +2064,15 @@ static int32_t md3draw(md3model_t *m, const spritetype *tspr) m0.x = m->scale * g; m1.x = m->scale *f; m0.y = m->scale * g; m1.y = m->scale *f; m0.z = m->scale * g; m1.z = m->scale *f; - a0.x = a0.y = 0; a0.z = ((globalorientation&8)?-m->zadd:m->zadd)*m->scale; } else { m0.x = (1.0/64.0) * m->scale * g; m1.x = (1.0/64.0) * m->scale *f; m0.y = (1.0/64.0) * m->scale * g; m1.y = (1.0/64.0) * m->scale *f; m0.z = (1.0/64.0) * m->scale * g; m1.z = (1.0/64.0) * m->scale *f; - a0.x = a0.y = 0; a0.z = ((globalorientation&8)?-m->zadd:m->zadd)*m->scale; } + a0.x = a0.y = 0; a0.z = m->zadd*m->scale; // Parkar: Moved up to be able to use k0 for the y-flipping code k0 = (float)tspr->z;