]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host.c
you can now open/close the console independently of menu and messagemode
[xonotic/darkplaces.git] / host.c
diff --git a/host.c b/host.c
index c0741a68b7e001c69f474e6d7e0a954355ba591d..ef402120afe67d95101df13e8d8ddec236590512 100644 (file)
--- a/host.c
+++ b/host.c
@@ -625,7 +625,7 @@ void Host_ServerFrame (void)
        if (cls.state != ca_dedicated && svs.maxclients > 1 && ((realtime - lastservertime) < sys_ticrate.value))
                return;
 // run the world state
-       if (!sv.paused && (svs.maxclients > 1 || key_dest == key_game) )
+       if (!sv.paused && (svs.maxclients > 1 || (key_dest == key_game && !key_consoleactive)))
                sv.frametime = pr_global_struct->frametime = frametimetotal;
        else
                sv.frametime = 0;
@@ -643,7 +643,7 @@ void Host_ServerFrame (void)
 
 // move things around and think
 // always pause in single player if in console or menus
-       if (!sv.paused && (svs.maxclients > 1 || key_dest == key_game) )
+       if (sv.frametime)
                SV_Physics ();
 
 // send all messages to the clients