We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e09d45 commit 29498baCopy full SHA for 29498ba
src/xrGame/ui/UIServerInfo.cpp
@@ -44,7 +44,11 @@ CUIServerInfo::CUIServerInfo() : CUIDialogWnd(CUIServerInfo::GetDebugType())
44
xr_string full_name = map_name + ".dds";
45
46
Frect orig_rect = m_image->GetTextureRect();
47
- if (FS.exist("$game_textures$", full_name.c_str()))
+ if (pGameIni->section_exist(Level().name()) && pGameIni->line_exist(Level().name(), "texture"))
48
+ {
49
+ m_image->InitTexture(pGameIni->r_string(Level().name(), "texture"));
50
+ }
51
+ else if (FS.exist("$game_textures$", full_name.c_str()))
52
m_image->InitTexture(map_name.c_str());
53
else
54
m_image->InitTexture("ui\\ui_noise");
0 commit comments