X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=netconn.c;h=98d26019e0cc388918e0ded10da13bf22fc925f1;hb=refs%2Fheads%2Fbones_was_here%2Fwalking_groundentity_fix;hp=ac481ca6df030e6d3d602ce11f0885880ab81b72;hpb=4d34e0a632cbc401712f46e10bb9864438b0881f;p=xonotic%2Fdarkplaces.git diff --git a/netconn.c b/netconn.c index ac481ca6..98d26019 100755 --- a/netconn.c +++ b/netconn.c @@ -1529,7 +1529,7 @@ static void NetConn_ConnectionEstablished(lhnetsocket_t *mysocket, lhnetaddress_ #endif // Disconnect from the current server or stop demo playback if(cls.state == ca_connected || cls.demoplayback) - CL_Disconnect(false, NULL); + CL_Disconnect(); // allocate a net connection to keep track of things cls.netcon = NetConn_Open(mysocket, peeraddress); crypto = &cls.netcon->crypto; @@ -2488,7 +2488,7 @@ void NetConn_ClientFrame(void) NetConn_QueryQueueFrame(); #endif if (cls.netcon && host.realtime > cls.netcon->timeout && !sv.active) - CL_Disconnect(true, "Connection timed out"); + CL_DisconnectEx(true, "Connection timed out"); } static void NetConn_BuildChallengeString(char *buffer, int bufferlength)