From 123df62028030769bc34f26bf6254696f9eb41fa Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Fri, 22 May 2020 18:17:35 +0200 Subject: [PATCH] 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" ) ) --- radiant/texwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2