diff options
Diffstat (limited to 'src/server/game/Maps/Map.cpp')
-rw-r--r-- | src/server/game/Maps/Map.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp index 4b470428c1f..fb83f3ac260 100644 --- a/src/server/game/Maps/Map.cpp +++ b/src/server/game/Maps/Map.cpp @@ -2320,11 +2320,11 @@ bool InstanceMap::Add(Player *player) if (IsDungeon()) { // get or create an instance save for the map - InstanceSave *mapSave = sInstanceSaveManager.GetInstanceSave(GetInstanceId()); + InstanceSave *mapSave = sInstanceSaveMgr.GetInstanceSave(GetInstanceId()); if (!mapSave) { sLog.outDetail("InstanceMap::Add: creating instance save for map %d spawnmode %d with instance id %d", GetId(), GetSpawnMode(), GetInstanceId()); - mapSave = sInstanceSaveManager.AddInstanceSave(GetId(), GetInstanceId(), Difficulty(GetSpawnMode()), 0, true); + mapSave = sInstanceSaveMgr.AddInstanceSave(GetId(), GetInstanceId(), Difficulty(GetSpawnMode()), 0, true); } // check for existing instance binds @@ -2438,7 +2438,7 @@ void InstanceMap::CreateInstanceData(bool load) if (i_data != NULL) return; - InstanceTemplate const* mInstance = objmgr.GetInstanceTemplate(GetId()); + InstanceTemplate const* mInstance = sObjectMgr.GetInstanceTemplate(GetId()); if (mInstance) { i_script_id = mInstance->script_id; @@ -2460,7 +2460,7 @@ void InstanceMap::CreateInstanceData(bool load) std::string data = fields[0].GetString(); if (data != "") { - sLog.outDebug("Loading instance data for `%s` with id %u", objmgr.GetScriptName(i_script_id), i_InstanceId); + sLog.outDebug("Loading instance data for `%s` with id %u", sObjectMgr.GetScriptName(i_script_id), i_InstanceId); i_data->Load(data.c_str()); } } @@ -2511,7 +2511,7 @@ void InstanceMap::PermBindAllPlayers(Player *player) if (!IsDungeon()) return; - InstanceSave *save = sInstanceSaveManager.GetInstanceSave(GetInstanceId()); + InstanceSave *save = sInstanceSaveMgr.GetInstanceSave(GetInstanceId()); if (!save) { sLog.outError("Cannot bind players, no instance save available for map!"); @@ -2545,7 +2545,7 @@ void InstanceMap::UnloadAll() ASSERT(!HavePlayers()); if (m_resetAfterUnload == true) - objmgr.DeleteRespawnTimeForInstance(GetInstanceId()); + sObjectMgr.DeleteRespawnTimeForInstance(GetInstanceId()); Map::UnloadAll(); } @@ -2563,9 +2563,9 @@ void InstanceMap::SetResetSchedule(bool on) // it is assumed that the reset time will rarely (if ever) change while the reset is scheduled if (IsDungeon() && !HavePlayers() && !IsRaidOrHeroicDungeon()) { - InstanceSave *save = sInstanceSaveManager.GetInstanceSave(GetInstanceId()); + InstanceSave *save = sInstanceSaveMgr.GetInstanceSave(GetInstanceId()); if (!save) sLog.outError("InstanceMap::SetResetSchedule: cannot turn schedule %s, no save available for instance %d of %d", on ? "on" : "off", GetInstanceId(), GetId()); - else sInstanceSaveManager.ScheduleReset(on, save->GetResetTime(), InstanceSaveManager::InstResetEvent(0, GetId(), Difficulty(GetSpawnMode()), GetInstanceId())); + else sInstanceSaveMgr.ScheduleReset(on, save->GetResetTime(), InstanceSaveManager::InstResetEvent(0, GetId(), Difficulty(GetSpawnMode()), GetInstanceId())); } } @@ -3429,7 +3429,7 @@ void Map::ScriptsProcess() } else //check hashmap holders { - if (CreatureData const* data = objmgr.GetCreatureData(step.script->datalong)) + if (CreatureData const* data = sObjectMgr.GetCreatureData(step.script->datalong)) cTarget = ObjectAccessor::GetObjectInWorld<Creature>(data->mapid, data->posX, data->posY, MAKE_NEW_GUID(step.script->datalong, data->id, HIGHGUID_UNIT), cTarget); } |