From b8f2d8c972d3011c3d169bb4f819374ca1b29f09 Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin Date: Mon, 4 Nov 2019 00:05:51 +0500 Subject: [PATCH] client: make some cvars archive. --- cl_dll/death.cpp | 2 +- cl_dll/hud.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cl_dll/death.cpp b/cl_dll/death.cpp index c6631f71..d2c41e38 100644 --- a/cl_dll/death.cpp +++ b/cl_dll/death.cpp @@ -71,7 +71,7 @@ int CHudDeathNotice::Init( void ) HOOK_MESSAGE( DeathMsg ); - CVAR_CREATE( "hud_deathnotice_time", "6", 0 ); + CVAR_CREATE( "hud_deathnotice_time", "6", FCVAR_ARCHIVE ); return 1; } diff --git a/cl_dll/hud.cpp b/cl_dll/hud.cpp index d408c415..9652770d 100644 --- a/cl_dll/hud.cpp +++ b/cl_dll/hud.cpp @@ -190,9 +190,9 @@ void CHud::Init( void ) m_iLogo = 0; m_iFOV = 0; - CVAR_CREATE( "zoom_sensitivity_ratio", "1.2", 0 ); + CVAR_CREATE( "zoom_sensitivity_ratio", "1.2", FCVAR_ARCHIVE ); CVAR_CREATE( "cl_autowepswitch", "1", FCVAR_ARCHIVE | FCVAR_USERINFO ); - default_fov = CVAR_CREATE( "default_fov", "90", 0 ); + default_fov = CVAR_CREATE( "default_fov", "90", FCVAR_ARCHIVE ); m_pCvarStealMouse = CVAR_CREATE( "hud_capturemouse", "1", FCVAR_ARCHIVE ); m_pCvarDraw = CVAR_CREATE( "hud_draw", "1", FCVAR_ARCHIVE ); cl_lw = gEngfuncs.pfnGetCvarPointer( "cl_lw" );