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
@@ -152,7 +152,7 @@ namespace Game.Entities
public override void Update(uint diff)
{
int positionUpdateDelay = 200;
uint positionUpdateDelay = 200;
if (GetAI() != null)
GetAI().UpdateAI(diff);
@@ -236,7 +236,7 @@ namespace Game.Entities
}
// Set position
_positionChangeTimer.Update((int)diff);
_positionChangeTimer.Update(diff);
if (_positionChangeTimer.Passed())
{
_positionChangeTimer.Reset(positionUpdateDelay);
@@ -805,7 +805,7 @@ namespace Game.Entities
KeyFrame _currentFrame;
int _nextFrame;
TimeTrackerSmall _positionChangeTimer = new();
TimeTracker _positionChangeTimer = new();
bool _isMoving;
bool _pendingStop;