This commit is contained in:
Charles 2001-01-19 21:46:30 +00:00
parent 7d427ff926
commit b2d3ef1445
9 changed files with 474 additions and 24 deletions

View file

@ -61,7 +61,11 @@ void CNpc::processCloseSharkManAttack( int _frames )
moveDist = incDir;
}
if ( abs( moveDist ) < 1024 )
s32 xDistWaypoint, yDistWaypoint;
m_npcPath.getDistToNextWaypoint( Pos, &xDistWaypoint, &yDistWaypoint );
if ( abs( moveDist ) < 1024 && abs( xDistWaypoint ) >= abs( xDist ) )
{
// continue charge