fixed mirror-bug - var now called "righthanded"

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4590 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
flowtron
2009-07-27 20:20:37 +00:00
parent a033b15535
commit 9fbe34852b
2 changed files with 4 additions and 12 deletions
-11
View File
@@ -336,23 +336,12 @@ void endmodelbatches(bool flush)
}
VAR(dbgmbatch, 0, 0, 1);
VARP(playerisrighthanded, 0, 1, 1); // flowtron 20090727
void rendermodel(const char *mdl, int anim, int tex, float rad, const vec &o, float yaw, float pitch, float speed, int basetime, playerent *d, modelattach *a, float scale)
{
model *m = loadmodel(mdl);
if(!m || (stenciling && (m->shadowdist <= 0 || anim&ANIM_TRANSLUCENT))) return;
if(playerisrighthanded == 0) // flowtron 20090727
{
bool isagun = ((anim&ANIM_GUN_IDLE) || (anim&ANIM_GUN_RELOAD) || (anim&ANIM_GUN_SHOOT) || (anim&ANIM_GUN_THROW));
if(isagun)
{
if(anim&ANIM_MIRROR) anim &= ~ANIM_MIRROR;
else anim |= ANIM_MIRROR;
}
}
if(rad >= 0)
{
if(!rad) rad = m->radius;