From: havoc Date: Sat, 29 Oct 2005 11:26:25 +0000 (+0000) Subject: fix server physics crash on level change from reading player movement packets during... X-Git-Tag: xonotic-v0.1.0preview~4502 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4712450bb9ee12d7d473429160ab99f7326da7aa;p=xonotic%2Fdarkplaces.git fix server physics crash on level change from reading player movement packets during SV_SpawnServer (bad idea!) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5782 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/netconn.c b/netconn.c index 7d46e1c3..9afda91b 100755 --- 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; diff --git a/sv_main.c b/sv_main.c index 47897a61..3740179a 100644 --- 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); }