]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Print "Disconnected" only if actually disconnecting from a server
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 23 May 2020 06:29:34 +0000 (06:29 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 23 May 2020 06:29:34 +0000 (06:29 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12557 d7cf8633-e32d-0410-b094-e92efae38249

cl_main.c

index 6196e407b8256799a7ecf93a57923b2b09f600b5..5932212e7e8fc1c75e89ad38bbae94bcf67d1bb8 100644 (file)
--- 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)