mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-18 14:34:09 +00:00
finished CPathFind
This commit is contained in:
parent
5f01f6c634
commit
0bd681abc5
10 changed files with 1058 additions and 135 deletions
|
@ -3856,7 +3856,7 @@ CPed::SetWanderPath(int8 pathStateDest)
|
|||
if (pathStateDest == 0)
|
||||
pathStateDest = CGeneral::GetRandomNumberInRange(1, 7);
|
||||
|
||||
ThePaths.FindNextNodeWandering(1, GetPosition(), &m_pNextPathNode, &m_pLastPathNode,
|
||||
ThePaths.FindNextNodeWandering(PATH_PED, GetPosition(), &m_pNextPathNode, &m_pLastPathNode,
|
||||
m_nPathState, &nextPathState);
|
||||
|
||||
// Circular loop until we find a node for current m_nPathState
|
||||
|
@ -3869,7 +3869,7 @@ CPed::SetWanderPath(int8 pathStateDest)
|
|||
SetIdle();
|
||||
return false;
|
||||
}
|
||||
ThePaths.FindNextNodeWandering(1, GetPosition(), &m_pNextPathNode, &m_pLastPathNode,
|
||||
ThePaths.FindNextNodeWandering(PATH_PED, GetPosition(), &m_pNextPathNode, &m_pLastPathNode,
|
||||
m_nPathState, &nextPathState);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue