Changeset 58 for trunk/src/game/Unit.h

Show
Ignore:
Timestamp:
11/19/08 13:30:04 (17 years ago)
Author:
yumileroy
Message:

[svn] Add Unit::GetObjectInWorld? function to get object by guid without providing reference.
Small change in SummonGameObject?.
Fix a bug that player can not click summoned najentus spine (must let target summon gameobject).

Original author: megamage
Date: 2008-10-18 19:59:34-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Unit.h

    r44 r58  
    12191219        void removeFollower(FollowerReference* /*pRef*/ ) { /* nothing to do yet */ } 
    12201220        static Unit* GetUnit(WorldObject& object, uint64 guid); 
     1221        template<class T> static T* GetObjectInWorld(uint64 guid, T* /*fake*/) 
     1222        { 
     1223            return ObjectAccessor::GetObjectInWorld(uint64 guid, T* /*fake*/) 
     1224        } 
    12211225 
    12221226        MotionMaster* GetMotionMaster() { return &i_motionMaster; }