Ticket #3474: ticket3474.patch

File ticket3474.patch, 678 bytes (added by mimo, 9 years ago)
  • source/simulation2/components/CCmpUnitMotion.cpp

     
    11131113bool CCmpUnitMotion::TryGoingStraightToGoalPoint(const CFixedVector2D& from)
    11141114{
    11151115    // Make sure the goal is a point (and not a point-like target like a formation controller)
    1116     if (m_FinalGoal.type != PathGoal::POINT && m_TargetEntity != INVALID_ENTITY)
     1116    if (m_FinalGoal.type != PathGoal::POINT || m_TargetEntity != INVALID_ENTITY)
    11171117        return false;
    11181118
    11191119    // Fail if the goal is too far away