Permalink
Browse files

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.
  • Loading branch information...
1 parent 2a3d07e commit d9bc9c6484ec29c1e33f4cbbac30704bafd9082d @dhewg dhewg committed Jul 19, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 neo/ui/ChoiceWindow.cpp
View
@@ -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 );

0 comments on commit d9bc9c6

Please sign in to comment.