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

This commit is contained in:
Arthur Ice 2015-01-17 15:56:06 -08:00
parent f1759421d1
commit 2eaeb38138

View File

@ -40,6 +40,7 @@ extern volatile bool RunLoops;
#include "../common/rulesys.h"
#include "../common/string_util.h"
#include "../common/data_verification.h"
#include "position.h"
#include "net.h"
#include "worldserver.h"
#include "zonedb.h"
@ -3178,7 +3179,7 @@ void Client::Insight(uint32 t_id)
Message(0,"This ability can only be used on NPCs.");
return;
}
if (Dist(*who) > 200)
if (Distance(static_cast<xyz_location>(m_Position), static_cast<xyz_location>(who->GetPosition())) > 200)
{
Message(0,"You must get closer to your target!");
return;