mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Don't show tune layer with cl_show_entities
This commit is contained in:
parent
ecb3422280
commit
9ae68b5efb
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue