Skip to content

Commit 29498ba

Browse files
committed
xrGame/ui/UIServerInfo.cpp: support for SOC game_maps_mp.ltx images (#392)
1 parent 0e09d45 commit 29498ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/xrGame/ui/UIServerInfo.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ CUIServerInfo::CUIServerInfo() : CUIDialogWnd(CUIServerInfo::GetDebugType())
4444
xr_string full_name = map_name + ".dds";
4545

4646
Frect orig_rect = m_image->GetTextureRect();
47-
if (FS.exist("$game_textures$", full_name.c_str()))
47+
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()))
4852
m_image->InitTexture(map_name.c_str());
4953
else
5054
m_image->InitTexture("ui\\ui_noise");

0 commit comments

Comments
 (0)