mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
i forgot to remove this i haven't made the propper checks for it
This commit is contained in:
parent
9f7fc48ad7
commit
a6d972eff7
|
@ -237,8 +237,8 @@ int CCollision::GetFTile(int x, int y)
|
||||||
|
|
||||||
int CCollision::Entity(int x, int y, bool Front)
|
int CCollision::Entity(int x, int y, bool Front)
|
||||||
{
|
{
|
||||||
if((0 < x || x >= m_Width) || (0 < y || y >= m_Height))
|
/*if((0 < x || x >= m_Width) || (0 < y || y >= m_Height))
|
||||||
dbg_msg("CCollision::Entity","Something is VERY wrong please report this at github");
|
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;
|
int Index = Front?m_pFront[y*m_Width+x].m_Index:m_pTiles[y*m_Width+x].m_Index;
|
||||||
return Index-ENTITY_OFFSET;
|
return Index-ENTITY_OFFSET;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue