]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
only apply qw skins to progs/player.mdl
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 19 Aug 2008 10:46:00 +0000 (10:46 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 19 Aug 2008 10:46:00 +0000 (10:46 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8458 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 1fe15f017626f28cd8458129b42bfead331cfc51..bbd731e1d67eb75cc962f9baf3f822632345112a 100644 (file)
@@ -4486,7 +4486,7 @@ void R_UpdateTextureInfo(const entity_render_t *ent, texture_t *t)
        }
 
        // update currentskinframe to be a qw skin or animation frame
-       if ((i = ent->entitynumber - 1) >= 0 && i < cl.maxclients)
+       if ((i = ent->entitynumber - 1) >= 0 && i < cl.maxclients && cls.protocol == PROTOCOL_QUAKEWORLD && cl.scores[i].qw_skin[0] && !strcmp(ent->model->name, "progs/player.mdl"))
        {
                if (strcmp(r_qwskincache[i], cl.scores[i].qw_skin))
                {