Core/Maps: Decrement map unload timer by correct (accumulated) time diff
Port From (https://github.com/TrinityCore/TrinityCore/commit/13a5d2d42d122415d56ba297ddf6ed9e16aaf30d)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user