mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 22:01:30 +00:00
Removed a usage of Mob::DistNoRootNoZ and used ComparativeDistanceNoZ instead
This commit is contained in:
parent
7c7250ee53
commit
095f5d2587
@ -4553,7 +4553,7 @@ void Client::HandleLDoNOpen(NPC *target)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(DistNoRootNoZ(*target) > RuleI(Adventure, LDoNTrapDistanceUse))
|
if(ComparativeDistanceNoZ(m_Position, target->GetPosition()) > RuleI(Adventure, LDoNTrapDistanceUse))
|
||||||
{
|
{
|
||||||
LogFile->write(EQEmuLog::Debug, "%s tried to open %s but %s was out of range",
|
LogFile->write(EQEmuLog::Debug, "%s tried to open %s but %s was out of range",
|
||||||
GetName(), target->GetName(), target->GetName());
|
GetName(), target->GetName(), target->GetName());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user