mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
small fix to q2 model code
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2761 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
0004fda94a
commit
4761de632a
1 changed files with 1 additions and 1 deletions
|
@ -1435,7 +1435,7 @@ void CLQ2_AddPacketEntities (q2frame_t *frame)
|
|||
if (!ent.model || ent.model->needload) //we need to do better than this
|
||||
{
|
||||
char *pmodel = Info_ValueForKey(player->userinfo, "model");
|
||||
if (!*pmodel)
|
||||
if (*pmodel)
|
||||
ent.model = Mod_ForName(va("players/%s/tris.md2", pmodel), false);
|
||||
if (!ent.model || ent.model->needload)
|
||||
ent.model = Mod_ForName("players/male/tris.md2", false);
|
||||
|
|
Loading…
Reference in a new issue