This commit is contained in:
parent
c8a3f3c9fc
commit
404975b407
8 changed files with 83 additions and 37 deletions
|
@ -231,7 +231,7 @@ s32 CNpcPath::think( DVECTOR currentPos, bool *pathComplete, bool *waypointChang
|
|||
return( headingToTarget );
|
||||
}
|
||||
|
||||
bool CNpcPath::think2D( DVECTOR currentPos, s32 *distX, s32 *distY )
|
||||
bool CNpcPath::think2D( DVECTOR currentPos, s32 *distX, s32 *distY, s32 *heading )
|
||||
{
|
||||
bool pointChange = false;
|
||||
|
||||
|
@ -256,5 +256,14 @@ bool CNpcPath::think2D( DVECTOR currentPos, s32 *distX, s32 *distY )
|
|||
incPath();
|
||||
}
|
||||
|
||||
if ( *distX > 0 )
|
||||
{
|
||||
*heading = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
*heading = 2048;
|
||||
}
|
||||
|
||||
return( pointChange );
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue