]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
hide ping reports in demos
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 23 May 2007 17:03:07 +0000 (17:03 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 23 May 2007 17:03:07 +0000 (17:03 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7348 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c

index a1d650d5288f90f08e128511db50ef0b6b280e2f..bedd95dda67fe092b4ec12ae8a284691128ff45e 100644 (file)
@@ -2713,6 +2713,9 @@ qboolean CL_ExaminePrintString(const char *text)
        if (!strcmp(text, "Client ping times:\n"))
        {
                cl.parsingtextmode = CL_PARSETEXTMODE_PING;
+               // hide ping reports in demos
+               if (cls.demoplayback)
+                       cl.parsingtextexpectingpingforscores = 1;
                for(cl.parsingtextplayerindex = 0; cl.parsingtextplayerindex < cl.maxclients && !cl.scores[cl.parsingtextplayerindex].name[0]; cl.parsingtextplayerindex++)
                        ;
                if (cl.parsingtextplayerindex >= cl.maxclients) // should never happen, since the client itself should be in cl.scores