]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_user.c
some cleanups to hostcache (got rid of driver/address stuff and expanded the strings...
[xonotic/darkplaces.git] / sv_user.c
index f895390fd635365e710092243376677092d08ccb..48a576cd0529afd6aff4c902952376994af15821 100644 (file)
--- a/sv_user.c
+++ b/sv_user.c
@@ -540,6 +540,12 @@ nextmsg:
                if (!ret)
                        return true;
 
+               if (host_client->waitingforconnect)
+               {
+                       host_client->waitingforconnect = false;
+                       host_client->sendserverinfo = true;
+               }
+
                MSG_BeginReading ();
 
                while (1)
@@ -556,14 +562,6 @@ nextmsg:
 
                        cmd = MSG_ReadChar ();
 
-#ifndef NOROUTINGFIX
-                       if (cmd != -1 && host_client->waitingforconnect)
-                       {
-                               host_client->waitingforconnect = false;
-                               host_client->sendserverinfo = true;
-                       }
-#endif
-
                        switch (cmd)
                        {
                        case -1: