This commit is contained in:
parent
4394e1db4b
commit
5fda179739
1 changed files with 1 additions and 1 deletions
|
@ -1089,7 +1089,7 @@ u8 CNpcPlatform::checkCollisionDelta( CThing *_thisThing, int threshold, CRECT c
|
|||
if ( otherCollisionArea.x2 >= collisionArea.x1 && otherCollisionArea.x1 <= collisionArea.x2 )
|
||||
{
|
||||
//if ( oldYPos < collisionArea.y1 + threshold ) //&& otherPos.vy > oldCollisionY )
|
||||
if ( getHeightFromPlatformAtPosition( oldXPos, oldYPos, -posDelta.vx, -posDelta.vy ) > 0 )
|
||||
if ( getHeightFromPlatformAtPosition( oldXPos, oldYPos, -posDelta.vx, -posDelta.vy ) >= 0 )
|
||||
{
|
||||
// if object's old position was above old platform collision area,
|
||||
// but is now below current platform collision area, we can assume
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue