[svn] Finally really fixed compile. Also, removed Unit::GetObjectInWorld(), use Map::GetCreatureInMap() and Map::GetGameObjectInMap() instead. This is to prevent creature-creature interaction on different maps, which would make the later multithreading of maps impossible.

--HG--
branch : trunk
This commit is contained in:
w12x
2008-10-19 11:07:10 -05:00
parent e78b34c63f
commit bc05228d9f
4 changed files with 16 additions and 7 deletions
-1
View File
@@ -1218,7 +1218,6 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
void addFollower(FollowerReference* pRef) { m_FollowingRefManager.insertFirst(pRef); }
void removeFollower(FollowerReference* /*pRef*/ ) { /* nothing to do yet */ }
static Unit* GetUnit(WorldObject& object, uint64 guid);
template<class T> static T* GetObjectInWorld(uint64 guid, T* /*fake*/);
MotionMaster* GetMotionMaster() { return &i_motionMaster; }