]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
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 8266a28e94709c173ee46b7ea97913abb4b5f72c..3a72466d6b6f21c22a3793e31e0cdf10e1ce03ed 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++)
        {