mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[11123] Move respawn data to InstanceSave.
This make prev commit more useful. In future InstanceSave also planned store local pools state.
This commit is contained in:
parent
852c4ddf32
commit
6cfa64db97
13 changed files with 258 additions and 191 deletions
|
|
@ -1431,11 +1431,8 @@ bool InstanceMap::Add(Player *player)
|
|||
pGroup->GetId(), groupBind->save->GetMapId(),
|
||||
groupBind->save->GetInstanceId(), groupBind->save->GetDifficulty());
|
||||
|
||||
if (GetInstanceSave())
|
||||
sLog.outError("MapSave players: %d, group count: %d",
|
||||
sLog.outError("MapSave players: %d, group count: %d",
|
||||
GetInstanceSave()->GetPlayerCount(), GetInstanceSave()->GetGroupCount());
|
||||
else
|
||||
sLog.outError("MapSave NULL");
|
||||
|
||||
if (groupBind->save)
|
||||
sLog.outError("GroupBind save players: %d, group count: %d", groupBind->save->GetPlayerCount(), groupBind->save->GetGroupCount());
|
||||
|
|
@ -1589,7 +1586,7 @@ void InstanceMap::UnloadAll(bool pForce)
|
|||
}
|
||||
|
||||
if(m_resetAfterUnload == true)
|
||||
sObjectMgr.DeleteRespawnTimeForInstance(GetInstanceId());
|
||||
GetInstanceSave()->DeleteRespawnTimes();
|
||||
|
||||
Map::UnloadAll(pForce);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue