Con_DPrintf("CL_Disconnect\n");
- Cvar_SetValueQuick(&csqc_progcrc, -1);
+ Cvar_SetValueQuick(&csqc_progcrc, -1);
Cvar_SetValueQuick(&csqc_progsize, -1);
CL_VM_ShutDown();
-// stop sounds (especially looping!)
- S_StopAllSounds ();
+ // stop sounds (especially looping!)
+ S_StopAllSounds();
+ // prevent dlcache assets from this server from interfering with the next one
+ FS_UnloadPacks_dlcache();
cl.parsingtextexpectingpingforscores = 0; // just in case no reply has come yet
#ifdef CONFIG_MENU
M_Update_Return_Reason("Trying to connect...");
#endif
+ SCR_BeginLoadingPlaque(false);
}
else
{
SndSys_SendKeyEvents();
Sys_SendKeyEvents();
+ /*
+ * If the accumulator hasn't become positive, don't
+ * run the frame. Everything that happens before this
+ * point will happen even if we're sleeping this frame.
+ */
if((cl_timer += time) < 0)
return cl_timer;
CL_Video_Init();
- NetConn_UpdateSockets_Client();
+ Cvar_Callback(&cl_netport);
host.hook.ConnectLocal = CL_EstablishConnection_Local;
host.hook.Disconnect = CL_DisconnectEx;