This commit is contained in:
Charles 2001-07-20 15:52:22 +00:00
parent a1dac87c85
commit fedc13f51d
5 changed files with 45 additions and 2 deletions

View file

@ -233,6 +233,22 @@ bool CNpcPath::incPath()
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcPath::decPath()
{
if ( currentWaypoint > 0 )
{
lastWaypoint = currentWaypoint;
currentWaypoint--;
}
else
{
lastWaypoint = currentWaypoint;
currentWaypoint = waypointCount;
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcPath::reversePathDir()
{
if ( lastWaypoint )