fix for sprite scale bug (it was scaling vup and vright!)
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 21 Nov 2000 10:17:37 +0000 (10:17 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 21 Nov 2000 10:17:37 +0000 (10:17 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@97 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 64b0e9b85df044a45684f37323e15fe12c7bf9ad..75cc0c374ad0e4d0ecd44af6b1a3087ef9493dfb 100644 (file)
@@ -399,8 +399,8 @@ R_DrawSpriteModel
 void R_DrawSpriteModel (entity_t *e)
 {
        mspriteframe_t  *oldframe, *newframe;
-       float           *up, *right, lerp, ilerp;
-       vec3_t          v_forward, v_right, v_up, org;
+       float                   lerp, ilerp;
+       vec3_t                  forward, right, up, org;
        msprite_t               *psprite;
 
        // don't even bother culling, because it's just a single
@@ -415,15 +415,13 @@ void R_DrawSpriteModel (entity_t *e)
 
        if (psprite->type == SPR_ORIENTED)
        {       // bullet marks on walls
-               AngleVectors (e->angles, v_forward, v_right, v_up);
-               up = v_up;
-               right = v_right;
+               AngleVectors (e->angles, forward, right, up);
                VectorSubtract(e->origin, vpn, org);
        }
        else
        {       // normal sprite
-               up = vup;
-               right = vright;
+               VectorCopy(vup, up);
+               VectorCopy(vright, right);
                VectorCopy(e->origin, org);
        }
        if (e->scale != 1)