This commit is contained in:
parent
7d427ff926
commit
b2d3ef1445
9 changed files with 474 additions and 24 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue