This commit is contained in:
parent
08f5fb4abf
commit
376d81c387
3 changed files with 39 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue