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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user