From bfd7d11a992e61ccc2a019c6b8831acae7b124e4 Mon Sep 17 00:00:00 2001 From: GreYFoXGTi Date: Wed, 15 Sep 2010 11:47:45 +0300 Subject: [PATCH] Changed the way Layers are rendered. Closes #31. Signed-off-by: GreYFoXGTi --- src/game/editor/ed_editor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/editor/ed_editor.cpp b/src/game/editor/ed_editor.cpp index 2df1ed3f4..e65825505 100644 --- a/src/game/editor/ed_editor.cpp +++ b/src/game/editor/ed_editor.cpp @@ -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,7 +1143,7 @@ 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) { @@ -1158,7 +1158,7 @@ void CEditor::DoMapEditor(CUIRect View, CUIRect ToolBar) m_Map.m_pSpeedupLayer->Render(); if(m_Map.m_pSwitchLayer && m_Map.m_pSwitchLayer->m_Visible) m_Map.m_pSwitchLayer->Render(); - } + }*/ } static void *s_pEditorId = (void *)&s_pEditorId;