From 1497fb1549ed18cb1a210cb407c6286f34474e19 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 2 Sep 2005 11:20:51 +0000 Subject: [PATCH] fix a bug that called player thinks during a level change, this bug may have even been in stock quake git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5679 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sv_main.c b/sv_main.c index 8266a28e..3a72466d 100644 --- 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++) { -- 2.39.2