]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
move sv.active = true; up to fix a VM_bprint warning
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 6 Jul 2005 18:22:56 +0000 (18:22 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 6 Jul 2005 18:22:56 +0000 (18:22 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5512 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index 7c3f7f1b021e225e773be951db209667a4dc12b2..18042424a92564bfc37dee59128f711e7676e44c 100644 (file)
--- 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;