mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 14:16:31 +00:00
Core/Instance: may fix config option Rate.InstanceResetTime (#441)
* Core/Instance: may fix config option Rate.InstanceResetTime and close issue #440 #284 #188 * Core/Instance: may fix config option Rate.InstanceResetTime and close issue #440 #284 #198
This commit is contained in:
@@ -278,7 +278,7 @@ void InstanceSaveManager::LoadResetTimes()
|
||||
continue;
|
||||
|
||||
// the reset_delay must be at least one day
|
||||
uint32 period = mapDiff->resetTime;
|
||||
uint32 period = uint32(((mapDiff->resetTime * sWorld->getRate(RATE_INSTANCE_RESET_TIME))/DAY) * DAY);
|
||||
if (period < DAY)
|
||||
period = DAY;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user