Removed a usage of Mob::DistNoRootNoZ and used ComparativeDistanceNoZ instead

This commit is contained in:
Arthur Ice 2015-01-18 02:01:20 -08:00
parent 0f1be1ecbf
commit c6b3060687

View File

@ -10411,7 +10411,7 @@ bool Bot::IsBotCasterCombatRange(Mob *target) {
// half the max so the bot doesn't always stop at max range to allow combat movement
range *= .5;
float targetDistance = DistNoRootNoZ(*target);
float targetDistance = ComparativeDistanceNoZ(m_Position, target->GetPosition());
if(targetDistance > range)
result = false;