r812 - trunk/code/client
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Jul 5 16:30:53 EDT 2006
Author: ludwig
Date: 2006-07-05 16:30:53 -0400 (Wed, 05 Jul 2006)
New Revision: 812
Modified:
trunk/code/client/cl_parse.c
Log:
- print warning if server tries to set cvars it shouldn't set
- make warnings yellow
Modified: trunk/code/client/cl_parse.c
===================================================================
--- trunk/code/client/cl_parse.c 2006-07-03 21:37:50 UTC (rev 811)
+++ trunk/code/client/cl_parse.c 2006-07-05 20:30:53 UTC (rev 812)
@@ -380,7 +380,7 @@
{
if(FS_CheckDirTraversal(value))
{
- Com_Printf("WARNING: Server sent invalid fs_game value %s\n", value);
+ Com_Printf(S_COLOR_YELLOW "WARNING: Server sent invalid fs_game value %s\n", value);
continue;
}
@@ -393,7 +393,10 @@
{
// If this cvar may not be modified by a server discard the value.
if(!(cvar_flags & (CVAR_SYSTEMINFO | CVAR_SERVER_CREATED)))
+ {
+ Com_Printf(S_COLOR_YELLOW "WARNING: server is not allowed to set %s=%s\n", key, value);
continue;
+ }
Cvar_Set(key, value);
}
More information about the quake3-commits
mailing list