mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
ignore tiles that dont use ids in ContainsElementWithId
This commit is contained in:
parent
4cd2c2964f
commit
71c8aad8d4
|
@ -1311,6 +1311,10 @@ bool CLayerTele::ContainsElementWithId(int Id)
|
|||
{
|
||||
for(int x = 0; x < m_Width; ++x)
|
||||
{
|
||||
if(m_pTeleTile[y * m_Width + x].m_Type == TILE_TELECHECKIN)
|
||||
continue;
|
||||
if(m_pTeleTile[y * m_Width + x].m_Type == TILE_TELECHECKINEVIL)
|
||||
continue;
|
||||
if(m_pTeleTile[y * m_Width + x].m_Number == Id)
|
||||
{
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue