This commit is contained in:
parent
5bcc1f3ef9
commit
28e212b5c2
8 changed files with 78 additions and 7 deletions
|
@ -544,7 +544,10 @@ int CPlayer::getHeightFromGround(int _x,int _y,int _maxHeight)
|
|||
{
|
||||
DVECTOR platformPos;
|
||||
platformPos=m_platform->getPos();
|
||||
height=platformPos.vy-Pos.vy;
|
||||
DVECTOR newPos = getNewCollidedPos();
|
||||
|
||||
height = newPos.vy - Pos.vy;
|
||||
|
||||
// if(height<-_maxHeight)
|
||||
// {
|
||||
// height=-_maxHeight;
|
||||
|
@ -1088,6 +1091,15 @@ void CPlayer::clearPlatform()
|
|||
m_platform=NULL;
|
||||
}
|
||||
|
||||
void CPlayer::setHasPlatformCollided( bool newVal )
|
||||
{
|
||||
m_hasPlatformCollided = newVal;
|
||||
}
|
||||
|
||||
bool CPlayer::getHasPlatformCollided()
|
||||
{
|
||||
return( m_hasPlatformCollided );
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue