From: black Date: Sat, 5 Feb 2005 20:39:45 +0000 (+0000) Subject: -Only print queried servers once to the console. X-Git-Tag: xonotic-v0.1.0preview~5158 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=83f960216c1c53cab853e4ffa03250456e2712fb;p=xonotic%2Fdarkplaces.git -Only print queried servers once to the console. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5004 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/netconn.c b/netconn.c index 53446bac..bf1d54a8 100755 --- a/netconn.c +++ b/netconn.c @@ -959,12 +959,12 @@ int NetConn_ClientParsePacket(lhnetsocket_t *mysocket, qbyte *data, int length, if (hostcache_cache[n].line1[i] != ' ') hostcache_cache[n].line1[i] -= 30; } - // if not in the slist menu we should print the server to console - if( hostcache_consoleoutput ) - Con_Printf("%s\n%s\n", hostcache_cache[n].line1, hostcache_cache[n].line2); // and finally, update the view set if( hostcache_cache[n].finished ) _HostCache_Remove( &hostcache_cache[n] ); + // else if not in the slist menu we should print the server to console (if wanted) + else if( hostcache_consoleoutput ) + Con_Printf("%s\n%s\n", hostcache_cache[n].line1, hostcache_cache[n].line2); _HostCache_Insert( &hostcache_cache[n] ); hostcache_cache[n].finished = true;