mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
only check gametiles for DDNet server type
This commit is contained in:
parent
26607cfd47
commit
fc706a820c
|
@ -341,6 +341,8 @@ void CMapLayers::OnMapLoad()
|
||||||
}
|
}
|
||||||
m_TileLayerVisuals.clear();
|
m_TileLayerVisuals.clear();
|
||||||
}
|
}
|
||||||
|
CServerInfo Info;
|
||||||
|
Client()->GetServerInfo(&Info);
|
||||||
|
|
||||||
bool PassedGameLayer = false;
|
bool PassedGameLayer = false;
|
||||||
//prepare all visuals for all tile layers
|
//prepare all visuals for all tile layers
|
||||||
|
@ -493,7 +495,7 @@ void CMapLayers::OnMapLoad()
|
||||||
{
|
{
|
||||||
Index = ((CTile*)pTiles)[y*pTMap->m_Width+x].m_Index;
|
Index = ((CTile*)pTiles)[y*pTMap->m_Width+x].m_Index;
|
||||||
Flags = ((CTile*)pTiles)[y*pTMap->m_Width+x].m_Flags;
|
Flags = ((CTile*)pTiles)[y*pTMap->m_Width+x].m_Flags;
|
||||||
if(!IsValidGameTile(Index)) continue;
|
if(IsDDNet(&Info) && !IsValidGameTile(Index)) continue;
|
||||||
}
|
}
|
||||||
if(IsFrontLayer)
|
if(IsFrontLayer)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue