mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
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:
parent
0adc1e1054
commit
5ddfd68b11
1 changed files with 3 additions and 1 deletions
|
@ -1646,12 +1646,14 @@ void CLQ2_AddPacketEntities (q2frame_t *frame)
|
||||||
{
|
{
|
||||||
if (s1->modelindex2 == 255)
|
if (s1->modelindex2 == 255)
|
||||||
{ // custom weapon
|
{ // custom weapon
|
||||||
char *modelname = "male";
|
char *modelname;
|
||||||
char *skin;
|
char *skin;
|
||||||
ent.model=NULL;
|
ent.model=NULL;
|
||||||
|
|
||||||
player = &cl.players[(s1->skinnum&0xff)%MAX_CLIENTS];
|
player = &cl.players[(s1->skinnum&0xff)%MAX_CLIENTS];
|
||||||
modelname = Info_ValueForKey(player->userinfo, "skin");
|
modelname = Info_ValueForKey(player->userinfo, "skin");
|
||||||
|
if (!modelname[0])
|
||||||
|
modelname = "male";
|
||||||
skin = strchr(modelname, '/');
|
skin = strchr(modelname, '/');
|
||||||
if (skin) *skin = '\0';
|
if (skin) *skin = '\0';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue