diff options
author | silver1ce <none@none> | 2010-01-10 16:33:14 +0200 |
---|---|---|
committer | silver1ce <none@none> | 2010-01-10 16:33:14 +0200 |
commit | 74bd8084a0df58cbf5fcd1852272664fe9b37ad5 (patch) | |
tree | 895ed548d8d2f300dd55fa9ea3a70ad77a2490e7 /src/game/Unit.cpp | |
parent | 903f975dc8816cf006d75c3d223d4eb23f327100 (diff) |
dropped old code, which unused since new visibility system implemented
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index c454353955c..d30da0f1daa 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -93,7 +93,7 @@ static bool procPrepared = InitTriggerAuraData(); Unit::Unit() : WorldObject(), i_motionMaster(this), m_ThreatManager(this), m_HostilRefManager(this) -, m_NotifyListPos(-1), m_Notified(false), IsAIEnabled(false), NeedChangeAI(false) +, IsAIEnabled(false), NeedChangeAI(false) , i_AI(NULL), i_disabledAI(NULL), m_removedAurasCount(0), m_vehicle(NULL), m_transport(NULL) , m_ControlledByPlayer(false), m_procDeep(0), m_unitTypeMask(UNIT_MASK_NONE), m_vehicleKit(NULL) , m_movedPlayer(NULL) @@ -12773,9 +12773,6 @@ void Unit::AddToWorld() if (!IsInWorld()) { WorldObject::AddToWorld(); - m_Notified = false; - assert(m_NotifyListPos < 0); //instance : crash - //m_NotifyListPos = -1; SetToNotify(); } } @@ -12803,9 +12800,6 @@ void Unit::RemoveFromWorld() RemoveAreaAurasDueToLeaveWorld(); - if (m_NotifyListPos >= 0) - GetMap()->RemoveUnitFromNotify(this); - if (GetCharmerGUID()) { sLog.outCrash("Unit %u has charmer guid when removed from world", GetEntry()); |