From 4f6668e449e908c97b06c14e30dab75d437106cc Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 31 Jul 2001 19:09:30 +0000 Subject: [PATCH] --- source/platform/pjellfsh.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/platform/pjellfsh.cpp b/source/platform/pjellfsh.cpp index 49a46b3d2..0f31a61a7 100644 --- a/source/platform/pjellfsh.cpp +++ b/source/platform/pjellfsh.cpp @@ -155,5 +155,14 @@ void CNpcJellyfishPlatform::think( int _frames ) Pos.vy += m_dipOffset; + s32 minY, maxY; + + m_npcPath.getPathYExtents( &minY, &maxY ); + + if ( Pos.vy > ( maxY + 16 ) ) + { + Pos.vy = maxY + 16; + } + CNpcLinearPlatform::think( _frames ); }