From 0b898651de1687265ef90cbf751a6eefde5f5271 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 7 Feb 2006 15:08:16 +0000 Subject: [PATCH] made MAX_LIGHTSTYLES error into a warning and it now checks cl_max_lightstyle instead git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5949 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_parse.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cl_parse.c b/cl_parse.c index 6b0c31fb..aa58c514 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -1524,8 +1524,11 @@ void CL_ParseServerMessage(void) case svc_lightstyle: i = MSG_ReadByte (); - if (i >= MAX_LIGHTSTYLES) - Host_Error ("svc_lightstyle >= MAX_LIGHTSTYLES"); + if (i >= cl_max_lightstyle) + { + Con_Printf ("svc_lightstyle >= MAX_LIGHTSTYLES"); + break; + } strlcpy (cl_lightstyle[i].map, MSG_ReadString(), sizeof (cl_lightstyle[i].map)); cl_lightstyle[i].map[MAX_STYLESTRING - 1] = 0; cl_lightstyle[i].length = (int)strlen(cl_lightstyle[i].map); -- 2.39.2