]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
Refactor game/mod cvar defaults
authorbones_was_here <bones_was_here@xonotic.au>
Wed, 8 May 2024 21:16:53 +0000 (07:16 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Thu, 9 May 2024 03:07:40 +0000 (13:07 +1000)
commit316549daf20e3a6a71841f87da516f7bb9cf340f
treead3c812d31739f13f999d21e9e258906f29b17d7
parentfca405f391c423a1a25779b58fde6a5251c345d6
Refactor game/mod cvar defaults

Adds gamegroup defaults.
This avoids the need to specify the same Quake defaults for every Quake
expansion/mod.
Fixes newly-added Quake mods (quake15, ad) having global defaults
instead of Quake defaults.

Moves comments in front of the cvars they refer to, some were unclear.

Removes redundant cvars, they're no longer needed because global
defaults and Quake defaults are correctly restored when switching
gamedirs, see 32c99c7b0a58545b273fa713d81d6bbfb3b8ebe6 and
205931f2f5b7333523ca4f6c3cae7974a8f516c8.

See also: 34e819a626f6a7ff2ad190a8e7d42e38ca8cef0e

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
cmd.c
com_game.h
sv_main.c