Ticket #3474: ticket3474.patch
File ticket3474.patch, 678 bytes (added by , 9 years ago) |
---|
-
source/simulation2/components/CCmpUnitMotion.cpp
1113 1113 bool CCmpUnitMotion::TryGoingStraightToGoalPoint(const CFixedVector2D& from) 1114 1114 { 1115 1115 // 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) 1117 1117 return false; 1118 1118 1119 1119 // Fail if the goal is too far away