Partially Revert "Changed the way Layers are rendered."Closes #38.

This reverts commit bfd7d11a99.
This commit is contained in:
GreYFoXGTi 2010-09-16 23:07:58 +03:00
parent 410156446b
commit 2ac229f228

View file

@ -109,7 +109,7 @@ void CLayerGroup::Render()
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))
m_lLayers[i]->Render();
@ -1143,22 +1143,22 @@ void CEditor::DoMapEditor(CUIRect View, CUIRect ToolBar)
m_Map.m_lGroups[g]->Render();
//UI()->ClipEnable(&view);
}
/*
// render the game, tele, speedup, front and switch above everything else
if(m_Map.m_pGameGroup->m_Visible)
{
m_Map.m_pGameGroup->MapScreen();
if(m_Map.m_pGameLayer->m_Visible)
m_Map.m_pGameLayer->Render();
if(m_Map.m_pFrontLayer && m_Map.m_pFrontLayer->m_Visible)
/*if(m_Map.m_pFrontLayer && m_Map.m_pFrontLayer->m_Visible)
m_Map.m_pFrontLayer->Render();
if(m_Map.m_pTeleLayer && m_Map.m_pTeleLayer->m_Visible)
m_Map.m_pTeleLayer->Render();
if(m_Map.m_pSpeedupLayer && m_Map.m_pSpeedupLayer->m_Visible)
m_Map.m_pSpeedupLayer->Render();
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;