mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
fixed loading of the background map
This commit is contained in:
parent
c4f62069e4
commit
98b6510b9c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue