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
@@ -591,7 +591,7 @@ public:
|
||||
wpCreature2->SaveToDB(map->GetId(), (1 << map->GetSpawnMode()), chr->GetPhaseMaskForSpawn());
|
||||
// To call _LoadGoods(); _LoadQuests(); CreateTrainerSpells();
|
||||
wpCreature2->LoadFromDB(wpCreature2->GetDBTableGUIDLow(), map);
|
||||
map->Add(wpCreature2);
|
||||
map->AddToMap(wpCreature2);
|
||||
//sMapMgr->GetMap(npcCreature->GetMapId())->Add(wpCreature2);
|
||||
}
|
||||
|
||||
@@ -790,7 +790,7 @@ public:
|
||||
wpCreature->SaveToDB(map->GetId(), (1 << map->GetSpawnMode()), chr->GetPhaseMaskForSpawn());
|
||||
// To call _LoadGoods(); _LoadQuests(); CreateTrainerSpells();
|
||||
wpCreature->LoadFromDB(wpCreature->GetDBTableGUIDLow(), map);
|
||||
map->Add(wpCreature);
|
||||
map->AddToMap(wpCreature);
|
||||
|
||||
if (target)
|
||||
{
|
||||
@@ -837,7 +837,7 @@ public:
|
||||
|
||||
creature->SaveToDB(map->GetId(), (1 << map->GetSpawnMode()), chr->GetPhaseMaskForSpawn());
|
||||
creature->LoadFromDB(creature->GetDBTableGUIDLow(), map);
|
||||
map->Add(creature);
|
||||
map->AddToMap(creature);
|
||||
|
||||
if (target)
|
||||
{
|
||||
@@ -885,7 +885,7 @@ public:
|
||||
|
||||
creature->SaveToDB(map->GetId(), (1 << map->GetSpawnMode()), chr->GetPhaseMaskForSpawn());
|
||||
creature->LoadFromDB(creature->GetDBTableGUIDLow(), map);
|
||||
map->Add(creature);
|
||||
map->AddToMap(creature);
|
||||
|
||||
if (target)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user