]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
-Only print queried servers once to the console.
authorblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 5 Feb 2005 20:39:45 +0000 (20:39 +0000)
committerblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 5 Feb 2005 20:39:45 +0000 (20:39 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5004 d7cf8633-e32d-0410-b094-e92efae38249

netconn.c

index 53446bac14f234c359e6c250c90030eccdcad07d..bf1d54a8b92f6ae6060649dd0d2a35a104ad6556 100755 (executable)
--- 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;