This commit is contained in:
Charles 2001-06-21 20:10:19 +00:00
parent 3f2ebeb556
commit af42f43345
7 changed files with 226 additions and 4 deletions

View file

@ -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;