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

This commit is contained in:
Arthur Ice 2015-01-18 02:44:49 -08:00
parent e5ee13bde0
commit 83413178c2

View File

@ -10305,7 +10305,7 @@ void command_disarmtrap(Client *c, const Seperator *sep)
{ {
if(c->HasSkill(SkillDisarmTraps)) if(c->HasSkill(SkillDisarmTraps))
{ {
if(c->DistNoRootNoZ(*target) > RuleI(Adventure, LDoNTrapDistanceUse)) if(ComparativeDistanceNoZ(c->GetPosition(), target->GetPosition()) > RuleI(Adventure, LDoNTrapDistanceUse))
{ {
c->Message(13, "%s is too far away.", target->GetCleanName()); c->Message(13, "%s is too far away.", target->GetCleanName());
return; return;