]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Save cvars cl_rollangle and cl_rollspeed to config.cfg
authorbones_was_here <bones_was_here@xonotic.au>
Fri, 3 Nov 2023 09:36:15 +0000 (19:36 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Fri, 3 Nov 2023 09:36:15 +0000 (19:36 +1000)
Closes https://gitlab.com/xonotic/darkplaces/-/issues/393

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
view.c

diff --git a/view.c b/view.c
index e9c0352ac7360b5e92a90c29d58694b7c2b34388..53567b95ae68420b73a6dfbdc462ec22813b7df9 100644 (file)
--- a/view.c
+++ b/view.c
@@ -32,8 +32,8 @@ when crossing a water boudnary.
 
 */
 
-cvar_t cl_rollspeed = {CF_CLIENT, "cl_rollspeed", "200", "how much strafing is necessary to tilt the view"};
-cvar_t cl_rollangle = {CF_CLIENT, "cl_rollangle", "2.0", "how much to tilt the view when strafing"};
+cvar_t cl_rollspeed = {CF_CLIENT | CF_ARCHIVE, "cl_rollspeed", "200", "how much strafing is necessary to tilt the view"};
+cvar_t cl_rollangle = {CF_CLIENT | CF_ARCHIVE, "cl_rollangle", "2.0", "how much to tilt the view when strafing"};
 
 cvar_t cl_bob = {CF_CLIENT | CF_ARCHIVE, "cl_bob","0.02", "view bobbing amount"};
 cvar_t cl_bobcycle = {CF_CLIENT | CF_ARCHIVE, "cl_bobcycle","0.6", "view bobbing speed"};