diff options
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; } |