Added an additional saftey check.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1290 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
f5f36c88f4
commit
1ba75d6183
1 changed files with 4 additions and 1 deletions
|
@ -587,6 +587,9 @@ void Model_NextDownload (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
cl.worldmodel = cl.model_precache[1];
|
cl.worldmodel = cl.model_precache[1];
|
||||||
|
|
||||||
|
if (!cl.worldmodel)
|
||||||
|
Host_EndGame("Worldmodel wasn't sent\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cl.worldmodel->type != mod_brush && cl.worldmodel->type != mod_heightmap)
|
if (cl.worldmodel->type != mod_brush && cl.worldmodel->type != mod_heightmap)
|
||||||
|
@ -1276,7 +1279,7 @@ void CL_ParseServerData (void)
|
||||||
sizeofangle = 1;
|
sizeofangle = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
svcnt = MSG_ReadLong ();
|
svcnt = MSG_ReadLong ();
|
||||||
|
|
||||||
// game directory
|
// game directory
|
||||||
str = MSG_ReadString ();
|
str = MSG_ReadString ();
|
||||||
|
|
Loading…
Reference in a new issue