]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commit
Update check-cvars.sh to only disallow changing extra settings in custom balance...
authorotta8634 <k9wolf@pm.me>
Sat, 1 Mar 2025 11:09:08 +0000 (19:09 +0800)
committerotta8634 <k9wolf@pm.me>
Mon, 17 Mar 2025 18:07:11 +0000 (02:07 +0800)
commitd0ceeac635f9b9f55a2326cb9c242e7c25e5a20d
tree9e61c1435be0c1a2ba8bb42b4ef565f34755eedb
parent813c33bc4f88b83041fdaf97c1a2f3b267807172
Update check-cvars.sh to only disallow changing extra settings in custom balance files

Now custom balance files like balance-overkill.cfg don't have to change every single cvar balance-xonotic.cfg does, so that the same defaults don't need to repeated for every single balance file.
The only requirement now is that balance-overkill.cfg can't set any cvars which aren't also set in balance-xonotic.cfg.
Additionally balance files can't set cvars with the wrong prefix (like cl_ or r_), and likewise hud files can't set cvars with prefixes other than hud_ or _hud_.
This doesn't apply to the hud cfg files, since they're compared against _hud_descriptions.cfg, which doesn't set defaults, so they must do it themselves.
Changes weren't made to the cfg files in question yet.
check-cvars.sh