]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix server physics crash on level change from reading player movement packets during...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 29 Oct 2005 11:26:25 +0000 (11:26 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 29 Oct 2005 11:26:25 +0000 (11:26 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5782 d7cf8633-e32d-0410-b094-e92efae38249

netconn.c
sv_main.c

index 7d46e1c375697d179e9622b347adfb570356aec1..9afda91bdbfcb6ae43161c99a2dc33d43b8f2990 100755 (executable)
--- a/netconn.c
+++ b/netconn.c
@@ -690,10 +690,12 @@ void NetConn_OpenServerPort(const char *addressstring, int defaultport)
        }
 }
 
+static void NetConn_UpdateServerStuff(void);
 void NetConn_OpenServerPorts(int opennetports)
 {
        int port;
        NetConn_CloseServerPorts();
+       NetConn_UpdateServerStuff();
        port = bound(0, sv_netport.integer, 65535);
        if (port == 0)
                port = 26000;
index 47897a61f6c6d0d6a90e2904d0a92fcb84be1b12..3740179a8047f384f5108b977bf642a86d0e7c6d 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -1724,8 +1724,7 @@ void SV_SpawnServer (const char *server)
        }
        else
        {
-               // make sure cvars have been checked before opening the ports
-               NetConn_ServerFrame();
+               // open server port
                NetConn_OpenServerPorts(true);
        }