This commit is contained in:
Charles 2001-05-25 20:51:17 +00:00
parent 85c497b6cf
commit eb5e00a0a7

View file

@ -97,6 +97,22 @@ void CNpcSteerableBarrelPlatform::processMovement( int _frames )
Pos.vx += moveX;
Pos.vy += moveY;
s32 minX, maxX;
m_npcPath.getPathXExtents( &minX, &maxX );
if ( minX != maxX )
{
if ( Pos.vx < minX )
{
Pos.vx = minX;
}
else if ( Pos.vx > maxX )
{
Pos.vx = maxX;
}
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////