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 ); }