From ee0b9edc21720ec17563ad29203b3bd511351f36 Mon Sep 17 00:00:00 2001 From: Arthur Ice Date: Sat, 17 Jan 2015 17:49:16 -0800 Subject: [PATCH] Removed Mob::Dist --- zone/mob.cpp | 10 ---------- zone/mob.h | 1 - 2 files changed, 11 deletions(-) diff --git a/zone/mob.cpp b/zone/mob.cpp index 4e2f3c9f2..6b7db13b2 100644 --- a/zone/mob.cpp +++ b/zone/mob.cpp @@ -2274,16 +2274,6 @@ bool Mob::CanThisClassBlock(void) const } } -float Mob::Dist(const Mob &other) const { - float xDiff = other.m_Position.m_X - m_Position.m_X; - float yDiff = other.m_Position.m_Y - m_Position.m_Y; - float zDiff = other.m_Position.m_Z - m_Position.m_Z; - - return sqrtf( (xDiff * xDiff) - + (yDiff * yDiff) - + (zDiff * zDiff) ); -} - float Mob::DistNoZ(const Mob &other) const { float xDiff = other.m_Position.m_X - m_Position.m_X; float yDiff = other.m_Position.m_Y - m_Position.m_Y; diff --git a/zone/mob.h b/zone/mob.h index 2afcd4aa0..d32777d8f 100644 --- a/zone/mob.h +++ b/zone/mob.h @@ -511,7 +511,6 @@ public: void ShowStats(Client* client); void ShowBuffs(Client* client); void ShowBuffList(Client* client); - float Dist(const Mob &) const; float DistNoZ(const Mob &) const; float DistNoRoot(const Mob &) const; float DistNoRootNoZ(float x, float y) const;