mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
dropped old code, which unused since new visibility system implemented
--HG-- branch : trunk
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user