]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_main.c
Fixups for Solaris port.
[xonotic/darkplaces.git] / 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;