From b7b5d564ac74e453a1fa595c437bb45b1ab41649 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 6 Jul 2005 18:22:56 +0000 Subject: [PATCH] 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 --- sv_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2