Core/Common: Merge TimeTrackerSmall with TimeTracker

Port From (https://github.com/TrinityCore/TrinityCore/commit/8809d54ca2daa230b1439f012c8b10ee88d6beae)
This commit is contained in:
hondacrx
2022-03-02 14:06:04 -05:00
parent 7631b1c387
commit 712dd7b9de
18 changed files with 52 additions and 82 deletions
+3 -3
View File
@@ -33,7 +33,7 @@ namespace Game.Maps
public GridInfo(long expiry, bool unload = true)
{
i_timer = new TimeTracker((int)expiry);
i_timer = new TimeTracker((uint)expiry);
vis_Update = new PeriodicTimer(0, RandomHelper.IRand(0, 1000));
i_unloadActiveLockCount = 0;
i_unloadExplicitLock = !unload;
@@ -71,12 +71,12 @@ namespace Game.Maps
public void ResetTimeTracker(long interval)
{
i_timer.Reset(interval);
i_timer.Reset((uint)interval);
}
public void UpdateTimeTracker(long diff)
{
i_timer.Update(diff);
i_timer.Update((uint)diff);
}
public PeriodicTimer GetRelocationTimer()