This commit is contained in:
parent
774067dcd9
commit
ae0862751b
1 changed files with 6 additions and 0 deletions
|
@ -95,6 +95,12 @@ void CNpcBouncePlatform::think( int _frames )
|
||||||
|
|
||||||
sBBox boundingBox = m_modelGfx->GetBBox();
|
sBBox boundingBox = m_modelGfx->GetBBox();
|
||||||
|
|
||||||
|
if ( ( boundingBox.YMax - boundingBox.YMin ) < 24 )
|
||||||
|
{
|
||||||
|
boundingBox.YMax = 24;
|
||||||
|
boundingBox.YMin = 0;
|
||||||
|
}
|
||||||
|
|
||||||
s32 newCollisionHeight = ( ( ONE + m_vertScale ) * ( boundingBox.YMax - boundingBox.YMin ) ) >> 12;
|
s32 newCollisionHeight = ( ( ONE + m_vertScale ) * ( boundingBox.YMax - boundingBox.YMin ) ) >> 12;
|
||||||
setCollisionSize( ( boundingBox.XMax - boundingBox.XMin ), newCollisionHeight - 2 );
|
setCollisionSize( ( boundingBox.XMax - boundingBox.XMin ), newCollisionHeight - 2 );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue