diff options
author | Andrey Nazarov <skuller@skuller.net> | 2013-03-19 00:49:11 +0400 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2013-03-20 22:04:53 +0400 |
commit | 4fae2443e6df7ccf0d97728cb4797f08998aab5c (patch) | |
tree | 58d05be36fdcb79104d88c6b0fd5101fe1b8e28e /src/refresh/sw/alias.c | |
parent | fb3e8b753ca7e429f3b657ee2e2d1941fb1965a7 (diff) |
Move some variables into r_refdef structure.
Diffstat (limited to 'src/refresh/sw/alias.c')
-rw-r--r-- | src/refresh/sw/alias.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/refresh/sw/alias.c b/src/refresh/sw/alias.c index b7f0a81..5d1f730 100644 --- a/src/refresh/sw/alias.c +++ b/src/refresh/sw/alias.c @@ -198,16 +198,16 @@ void R_AliasProjectAndClipTestFinalVert(finalvert_t *fv) fv->zi = zi * s_ziscale; - fv->u = (x * aliasxscale * zi) + aliasxcenter; - fv->v = (y * aliasyscale * zi) + aliasycenter; + fv->u = (x * r_refdef.xscale * zi) + r_refdef.xcenter; + fv->v = (y * r_refdef.yscale * zi) + r_refdef.ycenter; - if (fv->u < r_refdef.aliasvrect.x) + if (fv->u < r_refdef.vrect.x) fv->flags |= ALIAS_LEFT_CLIP; - if (fv->v < r_refdef.aliasvrect.y) + if (fv->v < r_refdef.vrect.y) fv->flags |= ALIAS_TOP_CLIP; - if (fv->u > r_refdef.aliasvrectright) + if (fv->u > r_refdef.vrectright) fv->flags |= ALIAS_RIGHT_CLIP; - if (fv->v > r_refdef.aliasvrectbottom) + if (fv->v > r_refdef.vrectbottom) fv->flags |= ALIAS_BOTTOM_CLIP; } @@ -672,7 +672,7 @@ void R_AliasDrawModel(void) currententity->backlerp = 0; if ((currententity->flags & (RF_WEAPONMODEL | RF_LEFTHAND)) == (RF_WEAPONMODEL | RF_LEFTHAND)) - aliasxscale = -aliasxscale; + r_refdef.xscale = -r_refdef.xscale; /* ** we have to set our frame pointers and transformations before @@ -709,6 +709,6 @@ void R_AliasDrawModel(void) exit: if ((currententity->flags & (RF_WEAPONMODEL | RF_LEFTHAND)) == (RF_WEAPONMODEL | RF_LEFTHAND)) - aliasxscale = -aliasxscale; + r_refdef.xscale = -r_refdef.xscale; } |