git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1384
d7cf8633-e32d-0410-b094-
e92efae38249
*/
void CL_Disconnect (void)
{
+ if (cls.state == ca_dedicated)
+ return;
+
// stop sounds (especially looping!)
S_StopAllSounds (true);
sv.active = false;
// stop all client sounds immediately
- if (cls.state == ca_connected)
- CL_Disconnect ();
+ CL_Disconnect ();
// flush any pending messages - like the score!!!
start = Sys_DoubleTime();
*/
void Host_Stopdemo_f (void)
{
- if (cls.state == ca_dedicated)
- return;
if (!cls.demoplayback)
return;
CL_Disconnect ();