mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-11 13:06:40 +03:00
Reversing Actor p3
This commit is contained in:
parent
9d4285bf39
commit
9aa87913f3
29 changed files with 4690 additions and 484 deletions
|
@ -518,7 +518,7 @@ int ActorPath::CurrentNodeIndex
|
|||
) const
|
||||
|
||||
{
|
||||
return m_pathpos - m_path;
|
||||
return m_pathpos ? m_pathpos - m_path : -1;
|
||||
}
|
||||
|
||||
PathInfo *ActorPath::NextNode
|
||||
|
@ -527,7 +527,7 @@ PathInfo *ActorPath::NextNode
|
|||
) const
|
||||
|
||||
{
|
||||
return m_pathpos - 1;
|
||||
return m_pathpos == m_path ? NULL : m_pathpos - 1;
|
||||
}
|
||||
|
||||
PathInfo *ActorPath::LastNode
|
||||
|
@ -666,6 +666,14 @@ bool ActorPath::HasCompleteLookahead
|
|||
return m_HasCompleteLookahead;
|
||||
}
|
||||
|
||||
bool ActorPath::IsSide
|
||||
(
|
||||
void
|
||||
) const
|
||||
{
|
||||
return m_Side;
|
||||
}
|
||||
|
||||
void ActorPath::ForceShortLookahead
|
||||
(
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue