diff options
author | megamage <none@none> | 2009-08-23 00:46:21 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-23 00:46:21 -0500 |
commit | b35fe879ad812947a50666ccc41d3603227291f9 (patch) | |
tree | c3a69fe263aac3e6e9ca66b0a406a20c65ba23fe /src/game/UnitAI.cpp | |
parent | db066046df2272b98f478a7072067a41fe69905f (diff) |
*Some update of spell target selection.
--HG--
branch : trunk
Diffstat (limited to 'src/game/UnitAI.cpp')
-rw-r--r-- | src/game/UnitAI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/UnitAI.cpp b/src/game/UnitAI.cpp index 4ba2f94e4db..50936bff001 100644 --- a/src/game/UnitAI.cpp +++ b/src/game/UnitAI.cpp @@ -113,7 +113,7 @@ struct TargetDistanceOrder : public std::binary_function<const Unit *, const Uni // functor for operator ">" bool operator()(const Unit * _Left, const Unit * _Right) const { - return (me->GetDistanceSq(_Left) < me->GetDistanceSq(_Right)); + return (me->GetExactDistSq(_Left) < me->GetExactDistSq(_Right)); } }; |