mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-15 04:28:20 +00:00
Merge pull request #9216 from Robyt3/Client-Map-Background-Fix
Fix incorrect rendering of menu and entities background maps
This commit is contained in:
commit
5d085ede70
|
@ -80,10 +80,12 @@ void CBackground::LoadBackground()
|
||||||
|
|
||||||
if(m_Loaded)
|
if(m_Loaded)
|
||||||
{
|
{
|
||||||
CMapLayers::OnMapLoad();
|
|
||||||
if(NeedImageLoading)
|
if(NeedImageLoading)
|
||||||
|
{
|
||||||
m_pImages->LoadBackground(m_pLayers, m_pMap);
|
m_pImages->LoadBackground(m_pLayers, m_pMap);
|
||||||
}
|
}
|
||||||
|
CMapLayers::OnMapLoad();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -256,8 +256,8 @@ void CMenuBackground::LoadMenuBackground(bool HasDayHint, bool HasNightHint)
|
||||||
{
|
{
|
||||||
m_pLayers->Init(m_pMap, true);
|
m_pLayers->Init(m_pMap, true);
|
||||||
|
|
||||||
CMapLayers::OnMapLoad();
|
|
||||||
m_pImages->LoadBackground(m_pLayers, m_pMap);
|
m_pImages->LoadBackground(m_pLayers, m_pMap);
|
||||||
|
CMapLayers::OnMapLoad();
|
||||||
|
|
||||||
// look for custom positions
|
// look for custom positions
|
||||||
CMapItemLayerTilemap *pTLayer = m_pLayers->GameLayer();
|
CMapItemLayerTilemap *pTLayer = m_pLayers->GameLayer();
|
||||||
|
|
Loading…
Reference in a new issue