From 4712450bb9ee12d7d473429160ab99f7326da7aa Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 29 Oct 2005 11:26:25 +0000 Subject: [PATCH] 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 --- netconn.c | 2 ++ sv_main.c | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.39.2