1
0
forked from mirrors/0ad

Resolve issues with 0c20afdfda - unitAI order cleanup and unitMotion MoveTo change

0c20afdfda had two issues:
- some of the unitAI code did not return true when switching states in
the "enter" phase
- missed a return false in unitMotion.cpp

This fixes the issue noticed by @bb.

Differential Revision: https://code.wildfiregames.com/D1947
This was SVN commit r22339.
This commit is contained in:
wraitii
2019-06-05 17:27:12 +00:00
parent f97213187e
commit dd67d0769e
2 changed files with 11 additions and 11 deletions
@@ -1647,7 +1647,7 @@ bool CCmpUnitMotion::MoveToTargetRange(entity_id_t target, entity_pos_t minRange
// We're already in range - no need to move anywhere
if (m_FacePointAfterMove)
FaceTowardsPointFromPos(pos, goal.x, goal.z);
return false;
return true;
}
entity_pos_t goalDistance = maxRange - Pathfinding::GOAL_DELTA;