diff options
author | megamage <none@none> | 2009-04-19 18:23:10 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-19 18:23:10 -0500 |
commit | f9befe1d3db1769c9cfeb6898504c95ca58c2316 (patch) | |
tree | b4037c4eefb6b2c97a93fddff4115921178ff1be /src/game/ObjectMgr.cpp | |
parent | 3d62e6f07d956b515f681642a67a9efbf9a013f6 (diff) |
[7688] Move Get*IfCanInteractWith to Player including renamed IsGameObjectOfTypeInRange. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r-- | src/game/ObjectMgr.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 637b1e9bec3..8cbc8f4b56d 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -4364,23 +4364,6 @@ void ObjectMgr::LoadInstanceTemplate() sLog.outString(); } -bool ObjectMgr::IsGameObjectOfTypeInRange(Player *player, uint64 guid, GameobjectTypes type) const -{ - if(GameObject *go = ObjectAccessor::GetGameObject(*player, guid)) - { - if(go->GetGoType() == type) - { - // TODO: find out how the client calculates the maximal usage distance to spellless working - // gameobjects like guildbanks and mailboxes - 10.0 is a just an abitrary choosen number - if (go->IsWithinDistInMap(player, 10.0f)) - return true; - sLog.outError("IsGameObjectOfTypeInRange: GameObject '%s' [GUID: %u] is too far away from player %s [GUID: %u] to be used by him (distance=%f, maximal 10 is allowed)", go->GetGOInfo()->name, - go->GetGUIDLow(), player->GetName(), player->GetGUIDLow(), go->GetDistance(player)); - } - } - return false; -} - GossipText const *ObjectMgr::GetGossipText(uint32 Text_ID) const { GossipTextMap::const_iterator itr = mGossipText.find(Text_ID); |