From: havoc Date: Thu, 23 Mar 2006 02:34:51 +0000 (+0000) Subject: add back a cls.signon = 0 in the SpawnServer code that is necessary to prevent crashe... X-Git-Tag: xonotic-v0.1.0preview~4150 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=04227e309487528aeadd8a4f363d5bb83a79bea2;p=xonotic%2Fdarkplaces.git add back a cls.signon = 0 in the SpawnServer code that is necessary to prevent crashes on level change in singleplayer and listen servers git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6170 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_main.c b/sv_main.c index 681fcf86..b2f69658 100644 --- a/sv_main.c +++ b/sv_main.c @@ -1703,6 +1703,9 @@ void SV_SpawnServer (const char *server) // set up the new server // memset (&sv, 0, sizeof(sv)); + // if running a local client, make sure it doesn't try to access the last + // level's data which is no longer valiud + cls.signon = 0; SV_VM_Setup();