From cb5bbfee2ab982a500f7dcec4e55514f6f2b3f80 Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 12 Jun 2015 14:52:15 +0000 Subject: [PATCH] git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4895 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_main.c | 2 -- engine/common/cmd.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 562505317..673709622 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -63,7 +63,6 @@ extern cvar_t net_compress; cvar_t cl_defaultport = CVARAFD("cl_defaultport", STRINGIFY(PORT_QWSERVER), "port", 0, "The default port to connect to servers.\nQW: "STRINGIFY(PORT_QWSERVER)", NQ: "STRINGIFY(PORT_NQSERVER)", Q2: "STRINGIFY(PORT_Q2SERVER)"."); cvar_t cfg_save_name = CVARFD("cfg_save_name", "fte", CVAR_ARCHIVE|CVAR_NOTFROMSERVER, "This is the config name that is saved by default when no argument is specified."); -cvar_t cfg_save_all = CVARFD("cfg_save_all", "", CVAR_ARCHIVE|CVAR_NOTFROMSERVER, "If 1, cfg_save ALWAYS saves all cvars. If 0, cfg_save only ever saves archived cvars. If empty, cfg_saves all cvars only when an explicit filename was given."); cvar_t cl_splitscreen = CVARD("cl_splitscreen", "0", "Enables splitscreen support. See also: allow_splitscreen, in_rawinput*, the \"p\" command."); @@ -3558,7 +3557,6 @@ void CL_Init (void) Cvar_Register (&developer, cl_controlgroup); Cvar_Register (&cfg_save_name, cl_controlgroup); - Cvar_Register (&cfg_save_all, cl_controlgroup); Cvar_Register (&cl_sendguid, cl_controlgroup); Cvar_Register (&cl_defaultport, cl_controlgroup); diff --git a/engine/common/cmd.c b/engine/common/cmd.c index f62cc512e..b99d422cf 100644 --- a/engine/common/cmd.c +++ b/engine/common/cmd.c @@ -47,6 +47,7 @@ typedef struct cmdalias_s cmdalias_t *cmd_alias; +cvar_t cfg_save_all = CVARFD("cfg_save_all", "", CVAR_ARCHIVE|CVAR_NOTFROMSERVER, "If 1, cfg_save ALWAYS saves all cvars. If 0, cfg_save only ever saves archived cvars. If empty, cfg_saves all cvars only when an explicit filename was given."); cvar_t cl_warncmd = CVARF("cl_warncmd", "1", CVAR_NOSAVE|CVAR_NORESET); cvar_t cl_aliasoverlap = CVARF("cl_aliasoverlap", "1", CVAR_NOTFROMSERVER); @@ -3244,6 +3245,7 @@ void Cmd_Init (void) Cvar_Register(&dpcompat_set, "Darkplaces compatibility"); Cvar_Register (&cl_warncmd, "Warnings"); + Cvar_Register (&cfg_save_all, "client operation options"); #ifndef SERVERONLY rcon_level.ival = atof(rcon_level.enginevalue); //client is restricted to not be allowed to change restrictions.