diff options
| author | megamage <none@none> | 2009-04-08 17:23:57 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-04-08 17:23:57 -0500 |
| commit | a7e04a252fc04988dea2072241ad8825db747e58 (patch) | |
| tree | 686c5bc61de1ca0f01fafe4ec77f26c51f55fc6a /src/game/Unit.cpp | |
| parent | 0c2dd85c2c79dbeca289b8d420e573efe41cbc0b (diff) | |
*Add unit to notify when unit is add to world (including load grid case).
*Add some check in remove object function.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
| -rw-r--r-- | src/game/Unit.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index fb0aee82654..beabc0e8668 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -66,11 +66,6 @@ float baseMoveSpeed[MAX_MOVE_TYPE] = void InitTriggerAuraData(); -void Unit::AddToWorld() -{ - WorldObject::AddToWorld(); -} - // auraTypes contains attacker auras capable of proc'ing cast auras static Unit::AuraTypeSet GenerateAttakerProcCastAuraTypes() { @@ -10853,6 +10848,16 @@ uint32 Unit::GetCreatePowers( Powers power ) const return 0; } +void Unit::AddToWorld() +{ + if(!IsInWorld()) + { + m_Notified = false; + m_IsInNotifyList = false; + SetToNotify(); + } +} + void Unit::RemoveFromWorld() { // cleanup |
