]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_main.c
host: Add "restless" variable to host_t. True means don't sleep (timedemo, etc)
[xonotic/darkplaces.git] / cl_main.c
index c03ff082eed865106b5265008e07f9d613194027..3424e67c14bc663f1eb7a4f169f430c5bbebb9f3 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -403,7 +403,7 @@ void CL_Disconnect(void)
        cls.state = ca_disconnected;
        cl.islocalgame = false;
 
-       cls.demoplayback = cls.timedemo = false;
+       cls.demoplayback = cls.timedemo = host.restless = false;
        cls.signon = 0;
 
        // If we're dropped mid-connection attempt, it won't clear otherwise.