From 26cfbd448dd382364521cff151d3c643d6bb1420 Mon Sep 17 00:00:00 2001 From: TimeServ Date: Sun, 18 Sep 2005 02:12:30 +0000 Subject: [PATCH] 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 --- engine/client/cl_parse.c | 2 +- engine/client/cl_tent.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/client/cl_parse.c b/engine/client/cl_parse.c index 5eaeadc4e..c96be6a06 100644 --- a/engine/client/cl_parse.c +++ b/engine/client/cl_parse.c @@ -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); diff --git a/engine/client/cl_tent.c b/engine/client/cl_tent.c index a2aa8d5d3..e16487db5 100644 --- a/engine/client/cl_tent.c +++ b/engine/client/cl_tent.c @@ -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 ();