Fix likely cause of "unexpected PathResult" warnings

This was SVN commit r8297.
This commit is contained in:
Ykkrosh 2010-10-06 22:17:34 +00:00
parent 368b07b04e
commit de673be78a

View File

@ -298,6 +298,7 @@ public:
virtual void StopMoving()
{
m_ExpectedPathTicket = 0;
m_State = STATE_STOPPING;
}
@ -723,8 +724,7 @@ void CCmpUnitMotion::Move(fixed dt)
void CCmpUnitMotion::StopAndFaceGoal(CFixedVector2D pos)
{
m_ExpectedPathTicket = 0;
m_State = STATE_STOPPING;
StopMoving();
FaceTowardsPoint(pos, m_FinalGoal.x, m_FinalGoal.z);
// TODO: if the goal was a square building, we ought to point towards the