mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Ignore switch tiles that don't use number for free slot finder
This commit is contained in:
parent
c4eca1a0ba
commit
97052e4752
|
@ -1865,7 +1865,7 @@ bool CLayerSwitch::ContainsElementWithId(int Id)
|
|||
{
|
||||
for(int x = 0; x < m_Width; ++x)
|
||||
{
|
||||
if(m_pSwitchTile[y * m_Width + x].m_Number == Id)
|
||||
if(IsSwitchTileNumberUsed(m_pSwitchTile[y * m_Width + x].m_Type) && m_pSwitchTile[y * m_Width + x].m_Number == Id)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue