X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=cl_parse.c;h=5cbcb8b269c27b7d4563d3f3ac3138d61f5ec04e;hp=4fc4a9768284ce732dd7ec3196c77601dd8d8307;hb=0706fdfa8e33548670e59234409eac2c51849631;hpb=e22be35609a3da42c7546adbc4ea943fb8847d95 diff --git a/cl_parse.c b/cl_parse.c index 4fc4a976..5cbcb8b2 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -35,7 +35,7 @@ const char *svc_strings[128] = { "svc_bad", "svc_nop", - "svc_disconnect", + "svc_disconnect", // (DP8) [string] null terminated parting message "svc_updatestat", "svc_version", // [int] server version "svc_setview", // [short] entity number @@ -3391,8 +3391,10 @@ static void CL_NetworkTimeReceived(double newtime) // update the csqc's server timestamps, critical for proper sync CSQC_UpdateNetworkTimes(cl.mtime[0], cl.mtime[1]); +#ifdef USEODE if (cl.mtime[0] > cl.mtime[1]) World_Physics_Frame(&cl.world, cl.mtime[0] - cl.mtime[1], cl.movevars_gravity); +#endif // only lerp entities that also get an update in this frame, when lerp excess is used if(cl_lerpexcess.value > 0) @@ -3529,11 +3531,8 @@ void CL_ParseServerMessage(void) if (cls.demonum != -1) CL_NextDemo(); else - { - Con_Printf("Server disconnected\n"); - CL_Disconnect(); - } - return; + CL_Disconnect(true, NULL); + break; case qw_svc_print: i = MSG_ReadByte(&cl_message); @@ -3910,12 +3909,9 @@ void CL_ParseServerMessage(void) case svc_disconnect: if (cls.demonum != -1) - CL_NextDemo (); + CL_NextDemo(); else - { - Con_Printf ("Server disconnected\n"); - CL_Disconnect (); - } + CL_Disconnect(true, cls.protocol == PROTOCOL_DARKPLACES8 ? MSG_ReadString(&cl_message, cl_readstring, sizeof(cl_readstring)) : NULL); break; case svc_print: