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.
This commit is contained in:
dhewg 2012-07-20 00:01:06 +02:00
parent 2a3d07e174
commit d9bc9c6484

View file

@ -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 );