mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
forgot this too
This commit is contained in:
parent
c6f0bf7500
commit
1f43a9a034
|
@ -83,6 +83,15 @@ void CCollision::Init(class CLayers *pLayers)
|
|||
m_pDoor[i].m_Number = m_pSwitch[i].m_Number;
|
||||
else
|
||||
m_pDoor[i].m_Number = 0;
|
||||
|
||||
Index = m_pSwitch[i].m_Type;
|
||||
if(Index > TILE_NPH)
|
||||
continue;
|
||||
|
||||
if(Index == TILE_SWITCHOPEN || Index == TILE_SWITCHCLOSE)
|
||||
m_pSwitch[i].m_Type = Index;
|
||||
else
|
||||
m_pSwitch[i].m_Type = 0;
|
||||
}
|
||||
if(m_pFront)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue