cfg_save causes serverinfo/localinfo to be saved. (as well as a warnings fix)

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@437 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-11-17 17:37:18 +00:00
parent 5f50922094
commit 956b174c9d

View file

@ -2194,7 +2194,7 @@ void Cmd_set_f(void)
if (var->flags & CVAR_NOTFROMSERVER && Cmd_FromServer())
{
Con_Printf ("Server tried setting %s cvar\n", var->name);
return true;
return;
}
text = If_Token(text, &end);
@ -2243,7 +2243,7 @@ void Cvar_Inc_f (void)
if (var->flags & CVAR_NOTFROMSERVER && Cmd_FromServer())
{
Con_Printf ("Server tried setting %s cvar\n", var->name);
return true;
return;
}
@ -2578,6 +2578,11 @@ void Cmd_WriteConfig_f(void)
Key_WriteBindings (f);
#else
fprintf(f, "// Dedicated Server config\n\n");
#endif
#ifdef CLIENTONLY
fprintf(f, "// no local/server infos\n\n");
#else
SV_SaveInfos(f);
#endif
Alias_WriteAliases (f);
Cvar_WriteVariables (f, true);