]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
added a workaround to hopefully fix a precaching error in kleshik on
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 12 Apr 2009 08:45:03 +0000 (08:45 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 12 Apr 2009 08:45:03 +0000 (08:45 +0000)
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

index 4c0800d59582d75b0065d6c017fc9083e05d57de..6c9e178ecb4cbeb697056e2035e891b41f3e9b62 100644 (file)
--- 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();