diff options
author | megamage <none@none> | 2009-08-24 18:36:00 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-24 18:36:00 -0500 |
commit | 3675c397435d32e07250c942ec6d402731b6b7e0 (patch) | |
tree | bf7e6362114b76dfe85d2b75113911a6db971506 /src/game/Unit.cpp | |
parent | bb8a9d4c3d33bc50f036da931c0f5d626d742af5 (diff) |
*Fix the wrong calculation in spell target selection.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 2766d31d6bc..6c47b56900e 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -3476,7 +3476,7 @@ bool Unit::isInBackInMap(Unit const* target, float distance, float arc) const bool Unit::isInLine(Unit const* target, float distance, float width) const { if(!HasInArc(M_PI, target) || !IsWithinDistInMap(target, distance)) return false; - width += target->GetObjectSize() * 0.5f; + width += target->GetObjectSize(); float angle = GetRelativeAngle(target); return abs(sin(angle)) * GetExactDistance2d(target->GetPositionX(), target->GetPositionY()) < width; } |