mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-07 15:51:09 +00:00
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:
parent
5f50922094
commit
956b174c9d
1 changed files with 7 additions and 2 deletions
|
@ -2194,7 +2194,7 @@ void Cmd_set_f(void)
|
||||||
if (var->flags & CVAR_NOTFROMSERVER && Cmd_FromServer())
|
if (var->flags & CVAR_NOTFROMSERVER && Cmd_FromServer())
|
||||||
{
|
{
|
||||||
Con_Printf ("Server tried setting %s cvar\n", var->name);
|
Con_Printf ("Server tried setting %s cvar\n", var->name);
|
||||||
return true;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
text = If_Token(text, &end);
|
text = If_Token(text, &end);
|
||||||
|
@ -2243,7 +2243,7 @@ void Cvar_Inc_f (void)
|
||||||
if (var->flags & CVAR_NOTFROMSERVER && Cmd_FromServer())
|
if (var->flags & CVAR_NOTFROMSERVER && Cmd_FromServer())
|
||||||
{
|
{
|
||||||
Con_Printf ("Server tried setting %s cvar\n", var->name);
|
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);
|
Key_WriteBindings (f);
|
||||||
#else
|
#else
|
||||||
fprintf(f, "// Dedicated Server config\n\n");
|
fprintf(f, "// Dedicated Server config\n\n");
|
||||||
|
#endif
|
||||||
|
#ifdef CLIENTONLY
|
||||||
|
fprintf(f, "// no local/server infos\n\n");
|
||||||
|
#else
|
||||||
|
SV_SaveInfos(f);
|
||||||
#endif
|
#endif
|
||||||
Alias_WriteAliases (f);
|
Alias_WriteAliases (f);
|
||||||
Cvar_WriteVariables (f, true);
|
Cvar_WriteVariables (f, true);
|
||||||
|
|
Loading…
Reference in a new issue