mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
parent
e051a30787
commit
8d481d60f5
|
@ -298,7 +298,7 @@ void CCollision::SetDCollisionAt(float x, float y, int Flag, int Team)
|
|||
|
||||
int CCollision::GetDTileIndex(int Index,int Team)
|
||||
{
|
||||
if(!m_pDoor || !m_pDoor[Index].m_Index || ((Team < 0 || Team > (MAX_CLIENTS - 1)) && Team !=99))
|
||||
if(!m_pDoor || Index < 0 || !m_pDoor[Index].m_Index || ((Team < 0 || Team > (MAX_CLIENTS - 1)) && Team !=99))
|
||||
return 0;
|
||||
|
||||
if(m_pDoor[Index].m_Team[Team])
|
||||
|
|
Loading…
Reference in a new issue