Merge pull request #9216 from Robyt3/Client-Map-Background-Fix

Fix incorrect rendering of menu and entities background maps
This commit is contained in:
Dennis Felsing 2024-11-07 20:56:29 +00:00 committed by GitHub
commit 5d085ede70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -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();
}
} }
} }

View file

@ -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();