This commit is contained in:
parent
8fc2f0e1df
commit
12e8907ece
4 changed files with 16 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue