say no to Sys_Error (net parsing fix)

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1345 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2005-09-18 02:12:30 +00:00
parent 4e17c00d14
commit 26cfbd448d
2 changed files with 2 additions and 2 deletions

View File

@ -3518,7 +3518,7 @@ void CL_ParseServerMessage (void)
Host_EndGame("PEXT_LIGHTSTYLECOL is meant to be disabled\n");
i = MSG_ReadByte ();
if (i >= MAX_LIGHTSTYLES)
Sys_Error ("svc_lightstyle > MAX_LIGHTSTYLES");
Host_EndGame ("svc_lightstyle > MAX_LIGHTSTYLES");
cl_lightstyle[i].colour = MSG_ReadByte();
Q_strncpyz (cl_lightstyle[i].map, MSG_ReadString(), sizeof(cl_lightstyle[i].map));
cl_lightstyle[i].length = Q_strlen(cl_lightstyle[i].map);

View File

@ -754,7 +754,7 @@ void CL_ParseTEnt (void)
#ifdef PEXT_TE_BULLET
case TE_BULLET:
if (!(cls.fteprotocolextensions & PEXT_TE_BULLET))
Sys_Error("Thought PEXT_TE_BULLET was disabled");
Host_EndGame("Thought PEXT_TE_BULLET was disabled");
pos[0] = MSG_ReadCoord ();
pos[1] = MSG_ReadCoord ();
pos[2] = MSG_ReadCoord ();