fixed loading of the background map

This commit is contained in:
oy 2015-01-18 19:07:28 +01:00
parent c4f62069e4
commit 98b6510b9c

View file

@ -38,7 +38,7 @@ void CMapLayers::OnInit()
m_pMenuMap = CreateEngineMap();
char aBuf[128];
str_format(aBuf, sizeof(aBuf), "maps/%s.map", g_Config.m_ClBackgroundMap);
str_format(aBuf, sizeof(aBuf), "ui/%s.map", g_Config.m_ClBackgroundMap);
if(!m_pMenuMap->Load(aBuf, m_pClient->Storage()))
{
str_format(aBuf, sizeof(aBuf), "map '%s' not found", g_Config.m_ClBackgroundMap);
@ -367,7 +367,7 @@ void CMapLayers::BackgroundMapUpdate()
m_pMenuMap->Unload();
char aBuf[128];
str_format(aBuf, sizeof(aBuf), "maps/%s.map", g_Config.m_ClBackgroundMap);
str_format(aBuf, sizeof(aBuf), "ui/%s.map", g_Config.m_ClBackgroundMap);
if(!m_pMenuMap->Load(aBuf, m_pClient->Storage()))
{
str_format(aBuf, sizeof(aBuf), "map '%s' not found", g_Config.m_ClBackgroundMap);