mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Fix menumap animations
This commit is contained in:
parent
656b1e9071
commit
fee5f5ec9f
|
@ -52,6 +52,7 @@ void CMapLayers::OnInit()
|
|||
m_pMenuLayers->Init(Kernel(), m_pMenuMap);
|
||||
RenderTools()->RenderTilemapGenerateSkip(m_pMenuLayers);
|
||||
m_pClient->m_pMapimages->OnMenuMapLoad(m_pMenuMap);
|
||||
LoadEnvPoints(m_pMenuLayers, m_lEnvPointsMenu);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -59,8 +60,6 @@ void CMapLayers::OnMapLoad()
|
|||
{
|
||||
if(Layers())
|
||||
LoadEnvPoints(Layers(), m_lEnvPoints);
|
||||
if(m_pMenuLayers)
|
||||
LoadEnvPoints(m_pMenuLayers, m_lEnvPointsMenu);
|
||||
}
|
||||
|
||||
void CMapLayers::LoadEnvPoints(const CLayers *pLayers, array<CEnvPoint>& lEnvPoints)
|
||||
|
@ -382,5 +381,6 @@ void CMapLayers::BackgroundMapUpdate()
|
|||
m_pMenuLayers->Init(Kernel(), m_pMenuMap);
|
||||
RenderTools()->RenderTilemapGenerateSkip(m_pMenuLayers);
|
||||
m_pClient->m_pMapimages->OnMenuMapLoad(m_pMenuMap);
|
||||
LoadEnvPoints(m_pMenuLayers, m_lEnvPointsMenu);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue