dropped old code, which unused since new visibility system implemented

--HG--
branch : trunk
This commit is contained in:
silver1ce
2010-01-10 16:33:14 +02:00
parent 903f975dc8
commit 74bd8084a0
7 changed files with 4 additions and 157 deletions

View File

@@ -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());