This commit is contained in:
parent
45fe785511
commit
e7cf64e467
2 changed files with 8 additions and 0 deletions
|
@ -1182,6 +1182,9 @@ CRECT const &collisionArea=getCollisionArea();
|
|||
int height = getHeightFromPlatformAtPosition( friendPos.vx, friendPos.vy );
|
||||
|
||||
friendNpc->setPlatform( this );
|
||||
DVECTOR friendPos = friendNpc->getPos();
|
||||
friendPos.vy += height;
|
||||
friendNpc->setPos( friendPos );
|
||||
|
||||
m_contact = true;
|
||||
}
|
||||
|
@ -1194,6 +1197,9 @@ CRECT const &collisionArea=getCollisionArea();
|
|||
if ( height >= -threshold && height < 1 )
|
||||
{
|
||||
friendNpc->setPlatform( this );
|
||||
DVECTOR friendPos = friendNpc->getPos();
|
||||
friendPos.vy += height;
|
||||
friendNpc->setPos( friendPos );
|
||||
|
||||
m_contact = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue