]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Autopause: cvar
authorTimePath <andrew.hardaker1995@gmail.com>
Thu, 24 Dec 2015 00:02:13 +0000 (11:02 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Thu, 24 Dec 2015 00:03:07 +0000 (11:03 +1100)
qcsrc/server/sv_main.qc

index 427a215c8b54cdbd827dde9011f24960f6af9e21..2433dc163d7275fdf85cbc3d47f56dc756ab1293 100644 (file)
@@ -153,12 +153,13 @@ Called before each frame by the server
 float game_delay;
 float game_delay_last;
 
+bool autocvar_sv_autopause = true;
 float RedirectionThink();
 void StartFrame()
 {
        SELFPARAM();
        execute_next_frame();
-       if (!server_is_dedicated) Pause_TryPause(true);
+       if (autocvar_sv_autopause && !server_is_dedicated) Pause_TryPause(true);
 
        remove = remove_unsafely; // not during spawning!
        serverprevtime = servertime;