q2 workaround

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3010 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2008-06-13 02:26:08 +00:00
parent 0adc1e1054
commit 5ddfd68b11
1 changed files with 3 additions and 1 deletions

View File

@ -1646,12 +1646,14 @@ void CLQ2_AddPacketEntities (q2frame_t *frame)
{
if (s1->modelindex2 == 255)
{ // custom weapon
char *modelname = "male";
char *modelname;
char *skin;
ent.model=NULL;
player = &cl.players[(s1->skinnum&0xff)%MAX_CLIENTS];
modelname = Info_ValueForKey(player->userinfo, "skin");
if (!modelname[0])
modelname = "male";
skin = strchr(modelname, '/');
if (skin) *skin = '\0';