inlined Host_EndGame in CL_ParseServerMessage's svc_disconnect case and greatly reduc...
[xonotic/darkplaces.git] / cl_parse.c
index 1db4e0a..b050e53 100644 (file)
@@ -1551,7 +1551,12 @@ void CL_ParseServerMessage(void)
                        break;
 
                case svc_disconnect:
-                       Host_EndGame ("Server disconnected\n");
+                       Con_Printf ("Server disconnected\n");
+                       if (cls.demonum != -1)
+                               CL_NextDemo ();
+                       else
+                               CL_Disconnect ();
+                       break;
 
                case svc_print:
                        Con_Print(MSG_ReadString());