This commit is contained in:
Charles 2001-03-30 22:43:35 +00:00
parent 5bcc1f3ef9
commit 28e212b5c2
8 changed files with 78 additions and 7 deletions

View file

@ -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 );
}
/*===========================================================================