This commit is contained in:
Charles 2001-04-06 16:26:33 +00:00
parent dcc063f721
commit 6ff72ee055
2 changed files with 8 additions and 3 deletions

View file

@ -783,7 +783,10 @@ int CThing::checkCollisionAgainst(CThing *_thisThing, int _frames)
{
thatPos.vy = getNewYPos( _thisThing );
s32 verticalDelta = abs( _thisThing->getPosDelta().vy );
// vertical height change is the sum of the maximums of BOTH objects
// potentially, one object could be falling down through another object that is moving up
s32 verticalDelta = abs( _thisThing->getPosDelta().vy ) + abs( this->getPosDelta().vy );
if ( thatPos.vy - _thisThing->getPos().vy >= -verticalDelta )
{