From 8b2daa6133555ee2afe2c8871b2ac40409143dc1 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 28 Sep 2005 23:32:54 +0000 Subject: [PATCH] Don't break old clients. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1388 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_demo.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/engine/client/cl_demo.c b/engine/client/cl_demo.c index f63795119..f7b38afa2 100644 --- a/engine/client/cl_demo.c +++ b/engine/client/cl_demo.c @@ -959,6 +959,10 @@ void CL_Record_f (void) // send all current light styles for (i=0 ; i= MAX_STANDARDLIGHTSTYLES) + if (!*cl_lightstyle[i].map) + continue; + MSG_WriteByte (&buf, svc_lightstyle); MSG_WriteByte (&buf, (char)i); MSG_WriteString (&buf, cl_lightstyle[i].map); @@ -1132,9 +1136,8 @@ void CL_PlayDemo_f (void) } else { -#ifdef Q2CLIENT cls.protocol = CP_QUAKEWORLD; -#endif + ft = 0; //work out if the first line is a int for the track number. while ((c = getc(cls.demofile)) != '\n') {