From efb1d412a5dff9a13404dd0393022409dab37525 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 19 Jul 2009 17:00:22 +0000 Subject: [PATCH] if its a vwep player model, pretend to be the real player model for the purposes of skinning. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3319 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_alias.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/gl/gl_alias.c b/engine/gl/gl_alias.c index d375da313..8c33e2817 100644 --- a/engine/gl/gl_alias.c +++ b/engine/gl/gl_alias.c @@ -1260,6 +1260,12 @@ void R_DrawGAliasModel (entity_t *e) if (qglPNTrianglesfATI && gl_ati_truform.value) qglEnable(GL_PN_TRIANGLES_ATI); + if (clmodel == cl.model_precache_vwep[0]) + { + extern int cl_playerindex; + clmodel = cl.model_precache[cl_playerindex]; + } + if (e->flags & Q2RF_WEAPONMODEL) { VectorCopy(currententity->origin, saveorg);