]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_main.c
now runs scripts at startup differently - runs scripts twice, once only executing...
[xonotic/darkplaces.git] / sv_main.c
index 832b3b245042eef4c78d6ff53dd8e3b5ad280231..afc29be8f473b0faf8d2e350685c95258b9cb8ef 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -1771,7 +1771,11 @@ void SV_SpawnServer (const char *server)
        if (sv.active)
                SV_SendReconnect();
        else
+       {
+               // make sure cvars have been checked before opening the ports
+               NetConn_ServerFrame();
                NetConn_OpenServerPorts(true);
+       }
 
 //
 // make cvars consistant