From d9772d9bbf52811b07a14dcf379a6d3e1e635f56 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 25 Feb 2021 10:53:56 -0800 Subject: [PATCH] Allow the two documented values of sys_ticrate without server showing up as modified. 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/server/world.qc b/qcsrc/server/world.qc index 9da86388c..68781ba44 100644 --- a/qcsrc/server/world.qc +++ b/qcsrc/server/world.qc @@ -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) { -- 2.39.2