From 72bad478d6fb2656e50ad2da9489040b487ab246 Mon Sep 17 00:00:00 2001 From: Arthur Ice Date: Sun, 18 Jan 2015 01:12:15 -0800 Subject: [PATCH] Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead --- zone/special_attacks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/special_attacks.cpp b/zone/special_attacks.cpp index 3c7bf8875..8c03d5dbc 100644 --- a/zone/special_attacks.cpp +++ b/zone/special_attacks.cpp @@ -1219,7 +1219,7 @@ void NPC::RangedAttack(Mob* other) min_range = static_cast(sa_min_range); max_range *= max_range; - if(DistNoRoot(*other) > max_range) + if(ComparativeDistance(m_Position, other->GetPosition()) > max_range) return; else if(DistNoRoot(*other) < (min_range * min_range)) return;