From d9bc9c6484ec29c1e33f4cbbac30704bafd9082d Mon Sep 17 00:00:00 2001 From: dhewg Date: Fri, 20 Jul 2012 00:01:06 +0200 Subject: [PATCH] Silence warnings for removed cvars in ChoiceWindow Disables these warnings: WARNING: idChoiceWindow::InitVars: gui 'guis/mainmenu.gui' window 'ADVNet5Primary' references undefined cvar 'net_serverAllowServerMod' WARNING: idChoiceWindow::InitVars: gui 'guis/mainmenu.gui' window 'SNDBPrimary' references undefined cvar 's_driver' Both cvars have been removed from this tree. --- neo/ui/ChoiceWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neo/ui/ChoiceWindow.cpp b/neo/ui/ChoiceWindow.cpp index 96b5876c..3bf21a52 100644 --- a/neo/ui/ChoiceWindow.cpp +++ b/neo/ui/ChoiceWindow.cpp @@ -44,7 +44,8 @@ void idChoiceWindow::InitVars( ) { if ( cvarStr.Length() ) { cvar = cvarSystem->Find( cvarStr ); if ( !cvar ) { - common->Warning( "idChoiceWindow::InitVars: gui '%s' window '%s' references undefined cvar '%s'", gui->GetSourceFile(), name.c_str(), cvarStr.c_str() ); + if (strcmp(cvarStr.c_str(), "s_driver") && strcmp(cvarStr.c_str(), "net_serverAllowServerMod")) + common->Warning( "idChoiceWindow::InitVars: gui '%s' window '%s' references undefined cvar '%s'", gui->GetSourceFile(), name.c_str(), cvarStr.c_str() ); return; } updateStr.Append( &cvarStr );