mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-05 03:53:48 +00:00
Core/Instance: Lost fix config option Rate.InstanceResetTime
This commit is contained in:
@@ -507,7 +507,7 @@ void InstanceSaveManager::_ResetOrWarnAll(uint32 mapid, Difficulty difficulty, b
|
|||||||
// calculate the next reset time
|
// calculate the next reset time
|
||||||
uint32 diff = sWorld->getIntConfig(CONFIG_INSTANCE_RESET_TIME_HOUR) * HOUR;
|
uint32 diff = sWorld->getIntConfig(CONFIG_INSTANCE_RESET_TIME_HOUR) * HOUR;
|
||||||
|
|
||||||
uint32 period = mapDiff->resetTime;
|
uint32 period = uint32(((mapDiff->resetTime * sWorld->getRate(RATE_INSTANCE_RESET_TIME))/DAY) * DAY);
|
||||||
if (period < DAY)
|
if (period < DAY)
|
||||||
period = DAY;
|
period = DAY;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user