This commit is contained in:
Paul 2001-02-22 15:14:49 +00:00
parent 08f5fb4abf
commit 376d81c387
3 changed files with 39 additions and 3 deletions

View file

@ -805,11 +805,17 @@ PLAYERINPUT CPlayer::getPadInputDown()
Params:
Returns:
---------------------------------------------------------------------- */
int slip=false;
int CPlayer::isOnSlippySurface()
{
return false;
// return slip&&isOnSolidGround();
int ret=false;
if(m_layerCollision->getHeightFromGround(Pos.vx,Pos.vy,5)==0&&
m_layerCollision->getCollisionType(Pos.vx,Pos.vy)&COLLISION_TYPE_FLAG_SLIPPERY)
{
ret=true;
}
return ret;
}