1
0
Fork 0
forked from fte/fteqw

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:
Spoike 2005-09-08 01:58:25 +00:00
parent f5f36c88f4
commit 1ba75d6183

View file

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