aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-07-05 20:30:53 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2006-07-05 20:30:53 +0000
commit87c1e45342de332c2564eb76b420736667b929c9 (patch)
tree4e2fcab06a8f82a12fcca2b7e3d88368173a4c8f
parent4a635232c834a08921e05d0042498d4a2d1a1fe6 (diff)
downloadioquake3-aero-87c1e45342de332c2564eb76b420736667b929c9.tar.gz
ioquake3-aero-87c1e45342de332c2564eb76b420736667b929c9.zip
- print warning if server tries to set cvars it shouldn't set
- make warnings yellow git-svn-id: svn://svn.icculus.org/quake3/trunk@812 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r--code/client/cl_parse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/code/client/cl_parse.c b/code/client/cl_parse.c
index b12105b..dd89074 100644
--- a/code/client/cl_parse.c
+++ b/code/client/cl_parse.c
@@ -380,7 +380,7 @@ void CL_SystemInfoChanged( void ) {
{
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 @@ void CL_SystemInfoChanged( void ) {
{
// 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);
}