Revert last fix

This commit is contained in:
btd 2010-08-21 14:21:51 +04:00
parent 42f48a3b17
commit 444a35fe2c

View file

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