ignore tiles that dont use ids in ContainsElementWithId

This commit is contained in:
marmare314 2023-03-14 18:29:58 +01:00
parent 4cd2c2964f
commit 71c8aad8d4

View file

@ -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;