From 5b785068c2515491d454ecbe35ab9ca9f1eed668 Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 25 May 2001 18:41:35 +0000 Subject: [PATCH] --- source/platform/pjellfsh.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source/platform/pjellfsh.cpp b/source/platform/pjellfsh.cpp index 23f826cb7..9a4120b6c 100644 --- a/source/platform/pjellfsh.cpp +++ b/source/platform/pjellfsh.cpp @@ -37,7 +37,15 @@ void CNpcJellyfishPlatform::postInit() { - CNpcLinearPlatform::postInit(); + sBBox boundingBox = m_modelGfx->GetBBox(); + boundingBox.YMin += 8; + setCollisionSize( ( boundingBox.XMax - boundingBox.XMin ), ( boundingBox.YMax - boundingBox.YMin ) ); + setCollisionCentreOffset( ( boundingBox.XMax + boundingBox.XMin ) >> 1, ( boundingBox.YMax + boundingBox.YMin ) >> 1 ); + + calculateNonRotatedCollisionData(); + setCollisionAngle( m_tiltAngle >> 8 ); + + m_npcPath.setPathType( CNpcPath::PONG_PATH ); m_vertScale = 0; m_dipCount = 0;