From: cloudwalk Date: Sat, 23 May 2020 06:29:34 +0000 (+0000) Subject: Print "Disconnected" only if actually disconnecting from a server X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3e57e7974c6e04e66a3f9d89629433fb5fa44e21;p=xonotic%2Fdarkplaces.git Print "Disconnected" only if actually disconnecting from a server git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12557 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_main.c b/cl_main.c index 6196e407..5932212e 100644 --- a/cl_main.c +++ b/cl_main.c @@ -389,6 +389,7 @@ void CL_Disconnect(void) NetConn_SendUnreliableMessage(cls.netcon, &buf, cls.protocol, 10000, 0, false); NetConn_Close(cls.netcon); cls.netcon = NULL; + Con_Printf("Disconnected\n"); } cls.state = ca_disconnected; cl.islocalgame = false; @@ -398,8 +399,6 @@ void CL_Disconnect(void) // If we're dropped mid-connection attempt, it won't clear otherwise. SCR_ClearLoadingScreen(false); - - Con_Printf("Disconnected\n"); } void CL_Disconnect_f(cmd_state_t *cmd)