This commit is contained in:
parent
3f2ebeb556
commit
af42f43345
7 changed files with 226 additions and 4 deletions
|
@ -45,6 +45,20 @@ bool CNpcPath::isPointNear( DVECTOR testPos, s32 *xDist, s32 *yDist )
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcPath::getCurrentWaypointPos( DVECTOR *waypointPos )
|
||||
{
|
||||
u16 *waypoint = waypointPtr;
|
||||
waypoint += 2 * currentWaypoint;
|
||||
|
||||
waypointPos->vx = ( *waypoint << 4 ) + 8;
|
||||
|
||||
waypoint++;
|
||||
|
||||
waypointPos->vy = ( *waypoint << 4 ) + 16;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void CNpcPath::initPath()
|
||||
{
|
||||
//waypoint = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue