]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow the two documented values of sys_ticrate without server showing up as modified. 878/head
authorRudolf Polzer <divVerent@gmail.com>
Thu, 25 Feb 2021 18:53:56 +0000 (10:53 -0800)
committerRudolf Polzer <divVerent@gmail.com>
Thu, 25 Feb 2021 18:54:51 +0000 (10:54 -0800)
Keeping 30Hz at the default for now, but considering to switch to 60Hz in the
future.

Should have smoother gameplay, at expense of more network packets and higher
server CPU load.

Fixes #2545.

qcsrc/server/world.qc

index 9da86388c1f22936b91de84c88ee9bae265b4b03..68781ba443e755c09c57307d0f0e7ec4bf4f872b 100644 (file)
@@ -171,6 +171,7 @@ void cvar_changes_init()
 #define BADPREFIX(p) if(substring(k, 0, strlen(p)) == p) continue
 #define BADPRESUFFIX(p,s) if(substring(k, 0, strlen(p)) == p && substring(k, -strlen(s), -1) == s) continue
 #define BADCVAR(p) if(k == p) continue
+#define BADVALUE(p, val) if (k == p && v == val) continue
 
                // general excludes and namespaces for server admin used cvars
                BADPREFIX("help_"); // PN's server has this listed as changed, let's not rat him out for THAT
@@ -500,6 +501,8 @@ void cvar_changes_init()
                BADCVAR("sv_vote_master_commands");
                BADCVAR("sv_vote_master_password");
                BADCVAR("sv_vote_simple_majority_factor");
+               BADVALUE("sys_ticrate", "0.0166667");
+               BADVALUE("sys_ticrate", "0.0333333");
                BADCVAR("teamplay_mode");
                BADCVAR("timelimit_override");
                BADPREFIX("g_warmup_");
@@ -529,6 +532,7 @@ void cvar_changes_init()
 #undef BADPRESUFFIX
 #undef BADPREFIX
 #undef BADCVAR
+#undef BADVALUE
 
                if(pureadding)
                {