This commit is contained in:
parent
a1dac87c85
commit
fedc13f51d
5 changed files with 45 additions and 2 deletions
|
@ -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 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue