mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-17 18:41:29 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
fccd767330
commit
864e9ba8ef
@ -997,7 +997,7 @@ void Client::AI_Process()
|
|||||||
if(owner == nullptr)
|
if(owner == nullptr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
float dist = DistNoRoot(*owner);
|
float dist = ComparativeDistance(m_Position, owner->GetPosition());
|
||||||
if (dist >= 100)
|
if (dist >= 100)
|
||||||
{
|
{
|
||||||
float speed = dist >= 225 ? GetRunspeed() : GetWalkspeed();
|
float speed = dist >= 225 ? GetRunspeed() : GetWalkspeed();
|
||||||
@ -1492,7 +1492,7 @@ void Mob::AI_Process() {
|
|||||||
//if(owner->IsClient())
|
//if(owner->IsClient())
|
||||||
// printf("Pet start pos: (%f, %f, %f)\n", GetX(), GetY(), GetZ());
|
// printf("Pet start pos: (%f, %f, %f)\n", GetX(), GetY(), GetZ());
|
||||||
|
|
||||||
float dist = DistNoRoot(*owner);
|
float dist = ComparativeDistance(m_Position, owner->GetPosition());
|
||||||
if (dist >= 400)
|
if (dist >= 400)
|
||||||
{
|
{
|
||||||
float speed = GetWalkspeed();
|
float speed = GetWalkspeed();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user