From: havoc Date: Mon, 22 Jan 2007 10:40:58 +0000 (+0000) Subject: changed ping report name matching to allow scoreboard names to be longer than ping... X-Git-Tag: xonotic-v0.1.0preview~3688 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e6afc7ac8502fe731a4c18e43e8f9221e19d3585;p=xonotic%2Fdarkplaces.git 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 --- 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++)