mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge pull request #447 from timakro/pr_dont_remove_unused_tiles
dont remove unused tiles
This commit is contained in:
commit
1ccbc7a69b
|
@ -106,17 +106,6 @@ void CCollision::Init(class CLayers *pLayers)
|
|||
m_pSwitch[i].m_Type = 0;
|
||||
}
|
||||
}
|
||||
if(m_pFront)
|
||||
{
|
||||
// remove unused tiles from front layer
|
||||
Index = m_pFront[i].m_Index;
|
||||
if(!IsValidFrontTile(Index))
|
||||
m_pFront[i].m_Index = 0;
|
||||
}
|
||||
// remove unused tiles from game layer
|
||||
Index = m_pTiles[i].m_Index;
|
||||
if(!IsValidGameTile(Index))
|
||||
m_pTiles[i].m_Index = 0;
|
||||
}
|
||||
|
||||
if(m_NumSwitchers)
|
||||
|
|
Loading…
Reference in a new issue