From a5851db645b6f16e5c55983cd7da4bf1e5a272b7 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 12 Apr 2009 08:45:03 +0000 Subject: [PATCH] added a workaround to hopefully fix a precaching error in kleshik on level changes with multiple players (where some of them appear without a player model because the svc_precache message is being lost) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8906 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sv_main.c b/sv_main.c index 4c0800d5..6c9e178e 100644 --- a/sv_main.c +++ b/sv_main.c @@ -2930,7 +2930,7 @@ void SV_SpawnServer (const char *server) VectorClear(prog->edicts->fields.server->angles); // all setup is completed, any further precache statements are errors - sv.state = ss_active; +// sv.state = ss_active; // LordHavoc: workaround for svc_precache bug prog->allowworldwrites = false; // run two frames to allow everything to settle @@ -2946,7 +2946,9 @@ void SV_SpawnServer (const char *server) // create a baseline for more efficient communications if (sv.protocol == PROTOCOL_QUAKE || sv.protocol == PROTOCOL_QUAKEDP || sv.protocol == PROTOCOL_NEHAHRAMOVIE || sv.protocol == PROTOCOL_NEHAHRABJP || sv.protocol == PROTOCOL_NEHAHRABJP2 || sv.protocol == PROTOCOL_NEHAHRABJP3) SV_CreateBaseline (); - + + sv.state = ss_active; // LordHavoc: workaround for svc_precache bug + // to prevent network timeouts realtime = Sys_DoubleTime(); -- 2.39.2