From fbe4130a5459dac1a7dc16cf3ecaab2430819eff Mon Sep 17 00:00:00 2001 From: Hondacrx Date: Wed, 9 Oct 2024 00:27:46 -0400 Subject: [PATCH] Core/Maps: Decrement map unload timer by correct (accumulated) time diff Port From (https://github.com/TrinityCore/TrinityCore/commit/13a5d2d42d122415d56ba297ddf6ed9e16aaf30d) --- Source/Game/Maps/MapManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Maps/MapManager.cs b/Source/Game/Maps/MapManager.cs index 2191b10aa..b65c59338 100644 --- a/Source/Game/Maps/MapManager.cs +++ b/Source/Game/Maps/MapManager.cs @@ -296,7 +296,7 @@ namespace Game.Entities var time = (uint)i_timer.GetCurrent(); foreach (var (key, map) in i_maps) { - if (map.CanUnload(diff)) + if (map.CanUnload((uint)i_timer.GetCurrent())) { if (DestroyMap(map)) i_maps.Remove(key);