From 3e57e7974c6e04e66a3f9d89629433fb5fa44e21 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Sat, 23 May 2020 06:29:34 +0000 Subject: [PATCH] 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 --- cl_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.39.2