From: Thomas Debesse Date: Fri, 22 May 2020 16:17:35 +0000 (+0200) Subject: radiant/texwindow: use TextureBrowser_showWads when possible X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=123df62028030769bc34f26bf6254696f9eb41fa;p=xonotic%2Fnetradiant.git radiant/texwindow: use TextureBrowser_showWads when possible instead of doing alternatively: - !string_empty( g_pGameDescription->getKeyValue( "show_wads" ) ) - TextureBrowser_showWads() the last one calling: - !string_empty( g_pGameDescription->getKeyValue( "show_wads" ) ) --- diff --git a/radiant/texwindow.cpp b/radiant/texwindow.cpp index 62b7460c..75d3788d 100644 --- a/radiant/texwindow.cpp +++ b/radiant/texwindow.cpp @@ -1746,7 +1746,7 @@ ui::MenuItem TextureBrowser_constructViewMenu( ui::Menu menu ){ create_menu_item_with_mnemonic( menu, "Show All", "ShowAllTextures" ); // we always want to show shaders but don't want a "Show Shaders" menu for doom3 and .wad file games - if ( g_pGameDescription->mGameType == "doom3" || !string_empty( g_pGameDescription->getKeyValue( "show_wads" ) ) ) { + if ( g_pGameDescription->mGameType == "doom3" || TextureBrowser_showWads() ) { g_TextureBrowser.m_showShaders = true; } else