From 492928754902edc961890ad93aa05c19a9a68646 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 22 Dec 2004 18:19:59 +0000 Subject: [PATCH] don't send a bunch of svc_precache messages in the serverinfo packet (no longer produces svc_precache messages if server state is ss_loading) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4882 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sv_main.c b/sv_main.c index ae0a38bc..73d2fdbe 100644 --- a/sv_main.c +++ b/sv_main.c @@ -1354,7 +1354,7 @@ int SV_ModelIndex(char *s, int precachemode) Con_Printf("SV_ModelIndex(\"%s\"): not precached (fix your code), precaching anyway\n", filename); strlcpy(sv.model_precache[i], filename, sizeof(sv.model_precache[i])); sv.models[i] = Mod_ForName (sv.model_precache[i], true, false, false); - if (sv.protocol == PROTOCOL_DARKPLACES6) + if (sv.protocol == PROTOCOL_DARKPLACES6 && sv.state != ss_loading) { MSG_WriteByte(&sv.reliable_datagram, svc_precache); MSG_WriteShort(&sv.reliable_datagram, i); @@ -1402,7 +1402,7 @@ int SV_SoundIndex(char *s, int precachemode) if (precachemode == 1) Con_Printf("SV_SoundIndex(\"%s\"): not precached (fix your code), precaching anyway\n", filename); strlcpy(sv.sound_precache[i], filename, sizeof(sv.sound_precache[i])); - if (sv.protocol == PROTOCOL_DARKPLACES6) + if (sv.protocol == PROTOCOL_DARKPLACES6 && sv.state != ss_loading) { MSG_WriteByte(&sv.reliable_datagram, svc_precache); MSG_WriteShort(&sv.reliable_datagram, i + 32768); -- 2.39.2