From 46eff2667f5eb4d739af938621eaeca81aabc0e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=B8=D1=80=D0=B8=D0=BB=D0=BB?= Date: Mon, 27 Mar 2017 18:58:41 +0300 Subject: [PATCH] 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 --- src/game/Instances/InstanceSaveMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/Instances/InstanceSaveMgr.cpp b/src/game/Instances/InstanceSaveMgr.cpp index 3e6f791a0..c17061d30 100644 --- a/src/game/Instances/InstanceSaveMgr.cpp +++ b/src/game/Instances/InstanceSaveMgr.cpp @@ -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;