Don't show tune layer with cl_show_entities

This commit is contained in:
def 2014-03-23 17:44:02 +01:00
parent ecb3422280
commit 9ae68b5efb

View file

@ -168,7 +168,7 @@ void CMapLayers::OnRender()
bool IsSwitchLayer = false;
bool IsTeleLayer = false;
bool IsSpeedupLayer = false;
bool IsTuneLayer = false;
//bool IsTuneLayer = false;
if(pLayer == (CMapItemLayer*)m_pLayers->GameLayer())
{
@ -187,9 +187,11 @@ void CMapLayers::OnRender()
if(pLayer == (CMapItemLayer*)m_pLayers->SpeedupLayer())
IsSpeedupLayer = true;
/*
if(pLayer == (CMapItemLayer*)m_pLayers->TuneLayer())
IsTuneLayer = true;
*/
// skip rendering if detail layers if not wanted
if(pLayer->m_Flags&LAYERFLAG_DETAIL && !g_Config.m_GfxHighDetail && !IsGameLayer)
@ -352,6 +354,7 @@ void CMapLayers::OnRender()
RenderTools()->RenderSpeedupOverlay(pSpeedupTiles, pTMap->m_Width, pTMap->m_Height, 32.0f);
}
}
/*
else if(g_Config.m_ClShowEntities && IsTuneLayer)
{
CMapItemLayerTilemap *pTMap = (CMapItemLayerTilemap *)pLayer;
@ -370,6 +373,7 @@ void CMapLayers::OnRender()
RenderTools()->RenderTuneOverlay(pTuneTiles, pTMap->m_Width, pTMap->m_Height, 32.0f);
}
}
*/
}
if(!g_Config.m_GfxNoclip)
Graphics()->ClipDisable();