Reversing Actor p3

This commit is contained in:
mohabhassan 2018-08-19 08:26:59 +02:00
parent 9d4285bf39
commit 9aa87913f3
29 changed files with 4690 additions and 484 deletions

View file

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