mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-02-21 03:21:37 +00:00
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:
parent
2a3d07e174
commit
d9bc9c6484
1 changed files with 2 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue