diff --git a/zone/entity.cpp b/zone/entity.cpp index 9114d8420..26f0762d0 100644 --- a/zone/entity.cpp +++ b/zone/entity.cpp @@ -4376,32 +4376,6 @@ void EntityList::AddTempPetsToHateListOnOwnerDamage(Mob *owner, Mob* attacker, i } } -bool Entity::CheckCoordLosNoZLeaps(float cur_x, float cur_y, float cur_z, - float trg_x, float trg_y, float trg_z, float perwalk) -{ - if (zone->zonemap == nullptr) - return true; - - glm::vec3 myloc; - glm::vec3 oloc; - glm::vec3 hit; - - myloc.x = cur_x; - myloc.y = cur_y; - myloc.z = cur_z+5; - - oloc.x = trg_x; - oloc.y = trg_y; - oloc.z = trg_z+5; - - if (myloc.x == oloc.x && myloc.y == oloc.y && myloc.z == oloc.z) - return true; - - if (!zone->zonemap->LineIntersectsZoneNoZLeaps(myloc,oloc,perwalk,&hit)) - return true; - return false; -} - void EntityList::QuestJournalledSayClose( Mob *sender, float dist, const char *mobname, const char *message, Journal::Options &opts diff --git a/zone/entity.h b/zone/entity.h index 52311b9f1..ee3b9c18f 100644 --- a/zone/entity.h +++ b/zone/entity.h @@ -114,7 +114,6 @@ public: inline const time_t& GetSpawnTimeStamp() const { return spawn_timestamp; } virtual const char* GetName() { return ""; } - bool CheckCoordLosNoZLeaps(float cur_x, float cur_y, float cur_z, float trg_x, float trg_y, float trg_z, float perwalk=1); Bot* CastToBot(); const Bot* CastToBot() const;