Removed a usage of Mob::Dist and used Distance instead

This commit is contained in:
Arthur Ice 2015-01-17 16:00:12 -08:00
parent 2eaeb38138
commit 77badffa29

View File

@ -3025,7 +3025,7 @@ void Client::Handle_OP_Assist(const EQApplicationPacket *app)
if (assistee->GetTarget()) {
Mob *new_target = assistee->GetTarget();
if (new_target && (GetGM() ||
Dist(*assistee) <= TARGETING_RANGE)) {
Distance(static_cast<xyz_location>(m_Position), static_cast<xyz_location>(assistee->GetPosition())) <= TARGETING_RANGE)) {
SetAssistExemption(true);
eid->entity_id = new_target->GetID();
}