From e6afc7ac8502fe731a4c18e43e8f9221e19d3585 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 22 Jan 2007 10:40:58 +0000 Subject: [PATCH] changed ping report name matching to allow scoreboard names to be longer than ping report names (because recent versions of ClanRing CTF seem to append READY on the scoreboard but not the ping report) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6718 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_parse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cl_parse.c b/cl_parse.c index cea947f1..dd88bcc5 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -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++) -- 2.39.2