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
@@ -149,7 +149,7 @@ public:
|
||||
// To call _LoadGoods(); _LoadQuests(); CreateTrainerSpells();
|
||||
creature->LoadFromDB(db_guid, map);
|
||||
|
||||
map->Add(creature);
|
||||
map->AddToMap(creature);
|
||||
sObjectMgr->AddCreatureToGrid(db_guid, sObjectMgr->GetCreatureData(db_guid));
|
||||
return true;
|
||||
}
|
||||
@@ -1142,7 +1142,7 @@ public:
|
||||
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);
|
||||
|
||||
Reference in new issue
Block a user