Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead

This commit is contained in:
Arthur Ice 2015-01-17 22:36:59 -08:00
parent d01f307edc
commit 30eb545b0b

View File

@ -3868,7 +3868,7 @@ Mob *EntityList::GetTargetForMez(Mob *caster)
continue; continue;
} }
if (caster->DistNoRoot(*d) > 22250) { //only pick targets within 150 range if (ComparativeDistance(caster->GetPosition(), d->GetPosition()) > 22250) { //only pick targets within 150 range
++it; ++it;
continue; continue;
} }