From 0a08d8bfb13fcc81d984224b069dbf001d30a802 Mon Sep 17 00:00:00 2001 From: Yamagi Date: Sun, 23 Feb 2020 18:46:35 +0100 Subject: [PATCH] Add back CVAR_ARCHIVE, lost in 60a4bd3. I hate this code. 60a4bd3 removed unnecessary Cvar_Get() calls, unfortunately they were the ones defining CVAR_ARCHIVE. The remaining ones did not... --- src/client/input/sdl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/input/sdl.c b/src/client/input/sdl.c index c8055f3b..88290544 100644 --- a/src/client/input/sdl.c +++ b/src/client/input/sdl.c @@ -1212,16 +1212,16 @@ IN_Init(void) joystick_yaw = joystick_pitch = joystick_forwardmove = joystick_sidemove = 0; exponential_speedup = Cvar_Get("exponential_speedup", "0", CVAR_ARCHIVE); - freelook = Cvar_Get("freelook", "1", 0); + freelook = Cvar_Get("freelook", "1", CVAR_ARCHIVE); in_grab = Cvar_Get("in_grab", "2", CVAR_ARCHIVE); - lookstrafe = Cvar_Get("lookstrafe", "0", 0); + lookstrafe = Cvar_Get("lookstrafe", "0", CVAR_ARCHIVE); m_filter = Cvar_Get("m_filter", "0", CVAR_ARCHIVE); m_up = Cvar_Get("m_up", "1", 0); m_forward = Cvar_Get("m_forward", "1", 0); m_pitch = Cvar_Get("m_pitch", "0.022", 0); m_side = Cvar_Get("m_side", "0.8", 0); m_yaw = Cvar_Get("m_yaw", "0.022", 0); - sensitivity = Cvar_Get("sensitivity", "3", 0); + sensitivity = Cvar_Get("sensitivity", "3", CVAR_ARCHIVE); joy_haptic_magnitude = Cvar_Get("joy_haptic_magnitude", "0.0", CVAR_ARCHIVE);