mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Changed the way Layers are rendered. Closes #31.
Signed-off-by: GreYFoXGTi <GreYFoXGTi@GMaiL.CoM>
This commit is contained in:
parent
8e066517ad
commit
bfd7d11a99
|
@ -109,7 +109,7 @@ void CLayerGroup::Render()
|
||||||
|
|
||||||
for(int i = 0; i < m_lLayers.size(); i++)
|
for(int i = 0; i < m_lLayers.size(); i++)
|
||||||
{
|
{
|
||||||
if(m_lLayers[i]->m_Visible && m_lLayers[i] != m_pMap->m_pGameLayer)
|
if(m_lLayers[i]->m_Visible/* && m_lLayers[i] != m_pMap->m_pGameLayer*/)
|
||||||
{
|
{
|
||||||
if(m_pMap->m_pEditor->m_ShowDetail || !(m_lLayers[i]->m_Flags&LAYERFLAG_DETAIL))
|
if(m_pMap->m_pEditor->m_ShowDetail || !(m_lLayers[i]->m_Flags&LAYERFLAG_DETAIL))
|
||||||
m_lLayers[i]->Render();
|
m_lLayers[i]->Render();
|
||||||
|
@ -1143,7 +1143,7 @@ void CEditor::DoMapEditor(CUIRect View, CUIRect ToolBar)
|
||||||
m_Map.m_lGroups[g]->Render();
|
m_Map.m_lGroups[g]->Render();
|
||||||
//UI()->ClipEnable(&view);
|
//UI()->ClipEnable(&view);
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
// render the game, tele, speedup, front and switch above everything else
|
// render the game, tele, speedup, front and switch above everything else
|
||||||
if(m_Map.m_pGameGroup->m_Visible)
|
if(m_Map.m_pGameGroup->m_Visible)
|
||||||
{
|
{
|
||||||
|
@ -1158,7 +1158,7 @@ void CEditor::DoMapEditor(CUIRect View, CUIRect ToolBar)
|
||||||
m_Map.m_pSpeedupLayer->Render();
|
m_Map.m_pSpeedupLayer->Render();
|
||||||
if(m_Map.m_pSwitchLayer && m_Map.m_pSwitchLayer->m_Visible)
|
if(m_Map.m_pSwitchLayer && m_Map.m_pSwitchLayer->m_Visible)
|
||||||
m_Map.m_pSwitchLayer->Render();
|
m_Map.m_pSwitchLayer->Render();
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *s_pEditorId = (void *)&s_pEditorId;
|
static void *s_pEditorId = (void *)&s_pEditorId;
|
||||||
|
|
Loading…
Reference in a new issue