]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
patch from div0: Send download requirements at an earlier time to cause less message...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 14 Aug 2006 22:54:32 +0000 (22:54 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 14 Aug 2006 22:54:32 +0000 (22:54 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6555 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c
sv_main.c

index 408592e28301ca4af00558e7ff5aef3d2c07d57c..d3aed4586a9cd01440747134d5e7528a9fc89bc1 100644 (file)
@@ -19,7 +19,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 
 #include "quakedef.h"
-#include "libcurl.h"
 
 int current_skill;
 cvar_t sv_cheats = {0, "sv_cheats", "0", "enables cheat commands in any game, and cheat impulses in dpmod"};
@@ -1528,8 +1527,6 @@ void Host_Begin_f (void)
                return;
        }
 
-       Curl_SendRequirements();
-
        host_client->spawned = true;
 }
 
index 55fb0ef1497a4055af7855f1d5e4b69e68f2c2b2..94dc01b1df285c843b3d1d2ac3855dfdfb2afc65 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -383,6 +383,14 @@ void SV_SendServerinfo (client_t *client)
        MSG_WriteByte (&client->netconnection->message, svc_signonnum);
        MSG_WriteByte (&client->netconnection->message, 1);
 
+       {
+               client_t *save;
+               save = host_client;
+               host_client = client;
+               Curl_SendRequirements();
+               host_client = save;
+       }
+
        client->spawned = false;                // need prespawn, spawn, etc
 }