mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +00:00
Removed a usage of Mob::Dist and used Distance instead
This commit is contained in:
parent
f1759421d1
commit
2eaeb38138
@ -40,6 +40,7 @@ extern volatile bool RunLoops;
|
|||||||
#include "../common/rulesys.h"
|
#include "../common/rulesys.h"
|
||||||
#include "../common/string_util.h"
|
#include "../common/string_util.h"
|
||||||
#include "../common/data_verification.h"
|
#include "../common/data_verification.h"
|
||||||
|
#include "position.h"
|
||||||
#include "net.h"
|
#include "net.h"
|
||||||
#include "worldserver.h"
|
#include "worldserver.h"
|
||||||
#include "zonedb.h"
|
#include "zonedb.h"
|
||||||
@ -3178,7 +3179,7 @@ void Client::Insight(uint32 t_id)
|
|||||||
Message(0,"This ability can only be used on NPCs.");
|
Message(0,"This ability can only be used on NPCs.");
|
||||||
return;
|
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!");
|
Message(0,"You must get closer to your target!");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user