From: havoc Date: Wed, 6 Jul 2005 18:22:56 +0000 (+0000) Subject: move sv.active = true; up to fix a VM_bprint warning X-Git-Tag: xonotic-v0.1.0preview~4674 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b7b5d564ac74e453a1fa595c437bb45b1ab41649;p=xonotic%2Fdarkplaces.git move sv.active = true; up to fix a VM_bprint warning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5512 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_main.c b/sv_main.c index 7c3f7f1b..18042424 100644 --- a/sv_main.c +++ b/sv_main.c @@ -1678,6 +1678,8 @@ void SV_SpawnServer (const char *server) memset (&sv, 0, sizeof(sv)); + sv.active = true; + strlcpy (sv.name, server, sizeof (sv.name)); sv.protocol = Protocol_EnumForName(sv_protocolname.string); @@ -1803,8 +1805,6 @@ void SV_SpawnServer (const char *server) // LordHavoc: clear world angles (to fix e3m3.bsp) VectorClear(prog->edicts->fields.server->angles); - sv.active = true; - // all setup is completed, any further precache statements are errors sv.state = ss_active; prog->allowworldwrites = false;