fix a bug that called player thinks during a level change, this bug may have even...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 2 Sep 2005 11:20:51 +0000 (11:20 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 2 Sep 2005 11:20:51 +0000 (11:20 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5679 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index 8266a28..3a72466 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -1811,6 +1811,11 @@ void SV_SpawnServer (const char *server)
        sv.state = ss_active;
        prog->allowworldwrites = false;
 
+       // we need to reset the spawned flag on all connected clients here so that
+       // their thinks don't run during startup (before PutClientInServer)
+       for (i = 0, host_client = svs.clients;i < svs.maxclients;i++, host_client++)
+               host_client->spawned = false;
+
 // run two frames to allow everything to settle
        for (i = 0;i < 2;i++)
        {