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:
TimeServ 2007-10-24 02:10:38 +00:00
parent 0004fda94a
commit 4761de632a

View file

@ -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);