From: havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Tue, 19 Aug 2008 10:46:00 +0000 (+0000)
Subject: only apply qw skins to progs/player.mdl
X-Git-Tag: xonotic-v0.1.0preview~2126
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c1e59e56d22a2603ba3f82d755980d57d77a1d99;p=xonotic%2Fdarkplaces.git

only apply qw skins to progs/player.mdl


git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8458 d7cf8633-e32d-0410-b094-e92efae38249
---

diff --git a/gl_rmain.c b/gl_rmain.c
index 1fe15f01..bbd731e1 100644
--- a/gl_rmain.c
+++ b/gl_rmain.c
@@ -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))
 		{