i forgot to remove this i haven't made the propper checks for it

This commit is contained in:
GreYFoXGTi 2010-10-08 18:42:38 +02:00
parent 9f7fc48ad7
commit a6d972eff7

View file

@ -237,8 +237,8 @@ int CCollision::GetFTile(int x, int y)
int CCollision::Entity(int x, int y, bool Front)
{
if((0 < x || x >= m_Width) || (0 < y || y >= m_Height))
dbg_msg("CCollision::Entity","Something is VERY wrong please report this at github");
/*if((0 < x || x >= m_Width) || (0 < y || y >= m_Height))
dbg_msg("CCollision::Entity","Something is VERY wrong please report this at github");*/
int Index = Front?m_pFront[y*m_Width+x].m_Index:m_pTiles[y*m_Width+x].m_Index;
return Index-ENTITY_OFFSET;
}