From cd2a988ed5842fbd909d73d2272064a4c5c964f8 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 14 Aug 2006 22:54:32 +0000 Subject: [PATCH] patch from div0: Send download requirements at an earlier time to cause less message spam with the disconnect-and-reconnect download method git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6555 d7cf8633-e32d-0410-b094-e92efae38249 --- host_cmd.c | 3 --- sv_main.c | 8 ++++++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/host_cmd.c b/host_cmd.c index 408592e2..d3aed458 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -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; } diff --git a/sv_main.c b/sv_main.c index 55fb0ef1..94dc01b1 100644 --- 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 } -- 2.39.2