mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[10094] Extract instance reset scheduler from InstanceSaveMgr
Reset scheduler code not need explicit access to instance saves, and no reson mix it with instance save managment code in single class
This commit is contained in:
parent
79f70e9a81
commit
e88a718c5d
5 changed files with 296 additions and 241 deletions
|
|
@ -144,7 +144,7 @@ void WorldSession::HandleMoveWorldportAckOpcode()
|
|||
{
|
||||
if (mapDiff->resetTime)
|
||||
{
|
||||
if (time_t timeReset = sInstanceSaveMgr.GetResetTimeFor(mEntry->MapID,diff))
|
||||
if (time_t timeReset = sInstanceSaveMgr.GetScheduler().GetResetTimeFor(mEntry->MapID,diff))
|
||||
{
|
||||
uint32 timeleft = uint32(timeReset - time(NULL));
|
||||
GetPlayer()->SendInstanceResetWarning(mEntry->MapID, diff, timeleft);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue