From ae0862751bb0a90d2f1f5dc5d7307b495e4d32d3 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 10 Jul 2001 18:25:33 +0000 Subject: [PATCH] --- source/platform/pbounce.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/platform/pbounce.cpp b/source/platform/pbounce.cpp index ee244c7a7..66cce5695 100644 --- a/source/platform/pbounce.cpp +++ b/source/platform/pbounce.cpp @@ -95,6 +95,12 @@ void CNpcBouncePlatform::think( int _frames ) 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; setCollisionSize( ( boundingBox.XMax - boundingBox.XMin ), newCollisionHeight - 2 );