Rename Map::Add to Map::AddToMap, Map::Remove to Map::RemoveFromMap for better management.

This commit is contained in:
megamage committed 2011-10-10 17:39:34 -04:00
1 parent d156e066cf
commit 3ba22d0d06
24 files changed
+85 -84

No files matched your search

+3 -3
View File
@@ -2199,7 +2199,7 @@ TempSummon* Map::SummonCreature(uint32 entry, Position const& pos, SummonPropert
summon->SetHomePosition(pos);
summon->InitStats(duration);
Add(summon->ToCreature());
AddToMap(summon->ToCreature());
summon->InitSummon();
//ObjectAccessor::UpdateObjectVisibility(summon);
@@ -2307,7 +2307,7 @@ Pet* Player::SummonPet(uint32 entry, float x, float y, float z, float ang, PetTy
break;
}
map->Add(pet->ToCreature());
map->AddToMap(pet->ToCreature());
switch (petType)
{
@@ -2368,7 +2368,7 @@ GameObject* WorldObject::SummonGameObject(uint32 entry, float x, float y, float
((Unit*)this)->AddGameObject(go);
else
go->SetSpawnedByDefault(false);
map->Add(go);
map->AddToMap(go);
return go;
}