only check gametiles for DDNet server type

This commit is contained in:
Jupeyy 2017-09-16 03:45:24 +02:00
parent 26607cfd47
commit fc706a820c

View file

@ -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)
{ {