From 87c1e45342de332c2564eb76b420736667b929c9 Mon Sep 17 00:00:00 2001 From: ludwig Date: Wed, 5 Jul 2006 20:30:53 +0000 Subject: - 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 --- code/client/cl_parse.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'code') 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); } -- cgit v1.2.3