]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
restrict the protocols libcurl allows when redirecting for security reasons, and...
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index afccfcccc40f69e20bdd1dc8b2c361546fbbe1be..f70a17f7fd06c775dc2a12d73e5540396f09fbee 100644 (file)
--- a/host.c
+++ b/host.c
@@ -29,6 +29,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include "progsvm.h"
 #include "csprogs.h"
 #include "sv_demo.h"
+#include "snd_main.h"
 
 /*
 
@@ -671,6 +672,7 @@ void Host_Main(void)
                cl.islocalgame = NetConn_IsLocalGame();
 
                // get new key events
+               SndSys_SendKeyEvents();
                Sys_SendKeyEvents();
 
                NetConn_UpdateSockets();
@@ -693,6 +695,7 @@ void Host_Main(void)
                if (sv.active ? sv_timer > 0 : cl_timer > 0)
                {
                        // process console commands
+                       CL_VM_PreventInformationLeaks();
                        Cbuf_Execute();
                }
 
@@ -823,7 +826,7 @@ void Host_Main(void)
        //
        //-------------------
 
-               if (cls.state != ca_dedicated && (cl_timer > 0 || cls.timedemo))
+               if (cls.state != ca_dedicated && (cl_timer > 0 || cls.timedemo || cl_maxfps.value < 1))
                {
                        // decide the simulation time
                        if (cls.capturevideo.active)