Rename Map::Add to Map::AddToMap, Map::Remove to Map::RemoveFromMap for better management.
This commit is contained in:
1 parent
d156e066cf
commit
3ba22d0d06
24 files changed
+85
-84
No files matched your search
@@ -2575,7 +2575,7 @@ void Spell::EffectPersistentAA(SpellEffIndex effIndex)
|
||||
return;
|
||||
}
|
||||
|
||||
dynObj->GetMap()->Add(dynObj);
|
||||
dynObj->GetMap()->AddToMap(dynObj);
|
||||
|
||||
if (Aura* aura = Aura::TryCreate(m_spellInfo, MAX_EFFECT_MASK, dynObj, caster, &m_spellValue->EffectBasePoints[0]))
|
||||
{
|
||||
@@ -3422,7 +3422,7 @@ void Spell::EffectAddFarsight(SpellEffIndex effIndex)
|
||||
dynObj->SetDuration(duration);
|
||||
|
||||
dynObj->setActive(true); //must before add to map to be put in world container
|
||||
dynObj->GetMap()->Add(dynObj); //grid will also be loaded
|
||||
dynObj->GetMap()->AddToMap(dynObj); //grid will also be loaded
|
||||
dynObj->SetCasterViewpoint();
|
||||
}
|
||||
|
||||
@@ -3812,7 +3812,7 @@ void Spell::EffectTameCreature(SpellEffIndex /*effIndex*/)
|
||||
pet->SetUInt32Value(UNIT_FIELD_LEVEL, level - 1);
|
||||
|
||||
// add to world
|
||||
pet->GetMap()->Add(pet->ToCreature());
|
||||
pet->GetMap()->AddToMap(pet->ToCreature());
|
||||
|
||||
// visual effect for levelup
|
||||
pet->SetUInt32Value(UNIT_FIELD_LEVEL, level);
|
||||
@@ -4378,7 +4378,7 @@ void Spell::EffectSummonObjectWild(SpellEffIndex effIndex)
|
||||
ExecuteLogEffectSummonObject(effIndex, pGameObj);
|
||||
|
||||
// Wild object not have owner and check clickable by players
|
||||
map->Add(pGameObj);
|
||||
map->AddToMap(pGameObj);
|
||||
|
||||
if (pGameObj->GetGoType() == GAMEOBJECT_TYPE_FLAGDROP && m_caster->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
@@ -4423,7 +4423,7 @@ void Spell::EffectSummonObjectWild(SpellEffIndex effIndex)
|
||||
ExecuteLogEffectSummonObject(effIndex, linkedGO);
|
||||
|
||||
// Wild object not have owner and check clickable by players
|
||||
map->Add(linkedGO);
|
||||
map->AddToMap(linkedGO);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -5583,7 +5583,7 @@ void Spell::EffectDuel(SpellEffIndex effIndex)
|
||||
ExecuteLogEffectSummonObject(effIndex, pGameObj);
|
||||
|
||||
m_caster->AddGameObject(pGameObj);
|
||||
map->Add(pGameObj);
|
||||
map->AddToMap(pGameObj);
|
||||
//END
|
||||
|
||||
// Send request
|
||||
@@ -5934,7 +5934,7 @@ void Spell::EffectSummonObject(SpellEffIndex effIndex)
|
||||
|
||||
ExecuteLogEffectSummonObject(effIndex, pGameObj);
|
||||
|
||||
map->Add(pGameObj);
|
||||
map->AddToMap(pGameObj);
|
||||
|
||||
m_caster->m_ObjectSlot[slot] = pGameObj->GetGUID();
|
||||
}
|
||||
@@ -6630,7 +6630,7 @@ void Spell::EffectTransmitted(SpellEffIndex effIndex)
|
||||
//m_caster->AddGameObject(pGameObj);
|
||||
//m_ObjToDel.push_back(pGameObj);
|
||||
|
||||
cMap->Add(pGameObj);
|
||||
cMap->AddToMap(pGameObj);
|
||||
|
||||
if (uint32 linkedEntry = pGameObj->GetGOInfo()->GetLinkedGameObjectEntry())
|
||||
{
|
||||
@@ -6645,7 +6645,7 @@ void Spell::EffectTransmitted(SpellEffIndex effIndex)
|
||||
|
||||
ExecuteLogEffectSummonObject(effIndex, linkedGO);
|
||||
|
||||
linkedGO->GetMap()->Add(linkedGO);
|
||||
linkedGO->GetMap()->AddToMap(linkedGO);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -6968,7 +6968,7 @@ void Spell::EffectCreateTamedPet(SpellEffIndex effIndex)
|
||||
return;
|
||||
|
||||
// add to world
|
||||
pet->GetMap()->Add(pet->ToCreature());
|
||||
pet->GetMap()->AddToMap(pet->ToCreature());
|
||||
|
||||
// unitTarget has pet now
|
||||
unitTarget->SetMinion(pet, true);
|
||||
|
||||
Reference in new issue
Block a user