This commit is contained in:
Charles 2001-05-24 15:12:38 +00:00
parent ff5bcfab95
commit 27cd9601d2

View File

@ -94,6 +94,13 @@ void CNpcBouncePlatform::think( int _frames )
}
}
sBBox boundingBox = m_modelGfx->GetBBox();
s32 newCollisionHeight = ( ( ONE + m_vertScale ) * ( boundingBox.YMax - boundingBox.YMin ) ) >> 12;
setCollisionSize( ( boundingBox.XMax - boundingBox.XMin ), newCollisionHeight - 2 );
calculateNonRotatedCollisionData();
CPlatformThing::think(_frames);
}