This commit is contained in:
Charles 2001-02-12 17:52:04 +00:00
parent 8fc2f0e1df
commit 12e8907ece
4 changed files with 16 additions and 1 deletions

View file

@ -98,3 +98,9 @@ void CNpc::processGenericGetUserDist( int _frames, s32 *distX, s32 *distY )
*distX = playerPos.vx - this->Pos.vx;
*distY = playerPos.vy - this->Pos.vy;
}
bool CNpc::isCollisionWithGround()
{
ASSERT(m_layerCollision);
return m_layerCollision->Get(Pos.vx>>4,Pos.vy>>4);
}