]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
changed ping report name matching to allow scoreboard names to be longer than ping...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 22 Jan 2007 10:40:58 +0000 (10:40 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 22 Jan 2007 10:40:58 +0000 (10:40 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6718 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c

index cea947f1dd94f6a6db0c3d743c10295ee5b3f657..dd88bcc5a4fd17f497ad4396e722b55dff282543 100644 (file)
@@ -2375,7 +2375,9 @@ qboolean CL_ExaminePrintString(const char *text)
                                {
                                        for (charindex = 0;cl.scores[cl.parsingtextplayerindex].name[charindex] == t[charindex];charindex++)
                                                ;
-                                       if (cl.scores[cl.parsingtextplayerindex].name[charindex] == 0 && t[charindex] == '\n')
+                                       // note: the matching algorithm stops at the end of the player name because some servers append text such as " READY" after the player name in the scoreboard but not in the ping report
+                                       //if (cl.scores[cl.parsingtextplayerindex].name[charindex] == 0 && t[charindex] == '\n')
+                                       if (t[charindex] == '\n')
                                        {
                                                cl.scores[cl.parsingtextplayerindex].qw_ping = bound(0, ping, 9999);
                                                for (cl.parsingtextplayerindex++;cl.parsingtextplayerindex < cl.maxclients && !cl.scores[cl.parsingtextplayerindex].name[0];cl.parsingtextplayerindex++)