mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Revert last fix
This commit is contained in:
parent
42f48a3b17
commit
444a35fe2c
|
@ -183,8 +183,8 @@ int CCollision::GetTile(int x, int y)
|
|||
}
|
||||
int CCollision::Entity(int x, int y, bool Front)
|
||||
{
|
||||
if(0 < x || x >= m_Width) return 0;
|
||||
if(0 < y || y >= m_Height) return 0;
|
||||
//if(0 < x || x >= m_Width) return 0;
|
||||
//if(0 < y || y >= m_Height) return 0;
|
||||
int Index = Front?m_pFront[y*m_Width+x].m_Index:m_pTiles[y*m_Width+x].m_Index;
|
||||
return Index-ENTITY_OFFSET;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue