mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
+2
-2
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user