fix for dedicated servers.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1640 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-11-30 21:35:43 +00:00
parent 304f1e38bd
commit 6f6b337428

View file

@ -5170,12 +5170,14 @@ galiasinfo_t *GLMod_ParseMD5MeshModel(char *buffer)
buffer = COM_Parse(buffer); buffer = COM_Parse(buffer);
num = atoi(com_token); num = atoi(com_token);
if (num < 0 || num >= numverts || !stcoord || !indexes) if (num < 0 || num >= numverts || !indexes)
Sys_Error("MD5MESH: vertex out of range"); Sys_Error("MD5MESH: vertex out of range");
EXPECT("("); EXPECT("(");
buffer = COM_Parse(buffer); buffer = COM_Parse(buffer);
#ifndef SERVERONLY #ifndef SERVERONLY
if (!stcoord)
Sys_Error("MD5MESH: vertex out of range");
stcoord[num*2+0] = atof(com_token); stcoord[num*2+0] = atof(com_token);
#endif #endif
buffer = COM_Parse(buffer); buffer = COM_Parse(buffer);