Core/Common: Merge TimeTrackerSmall with TimeTracker
Port From (https://github.com/TrinityCore/TrinityCore/commit/8809d54ca2daa230b1439f012c8b10ee88d6beae)
This commit is contained in:
@@ -241,7 +241,7 @@ namespace Game.Entities
|
||||
float[] m_powerFraction = new float[(int)PowerType.MaxPerClass];
|
||||
int[] m_MirrorTimer = new int[3];
|
||||
|
||||
TimeTrackerSmall m_groupUpdateTimer;
|
||||
TimeTracker m_groupUpdateTimer;
|
||||
|
||||
ulong m_GuildIdInvited;
|
||||
DeclinedName _declinedname;
|
||||
|
||||
@@ -612,7 +612,7 @@ namespace Game.Entities
|
||||
}
|
||||
|
||||
// group update
|
||||
m_groupUpdateTimer.Update((int)diff);
|
||||
m_groupUpdateTimer.Update(diff);
|
||||
if (m_groupUpdateTimer.Passed())
|
||||
{
|
||||
SendUpdateToOutOfRangeGroupMembers();
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace Game.Entities
|
||||
public MoveSpline MoveSpline { get; set; }
|
||||
MotionMaster i_motionMaster;
|
||||
public uint m_movementCounter; //< Incrementing counter used in movement packets
|
||||
TimeTrackerSmall splineSyncTimer;
|
||||
TimeTracker splineSyncTimer;
|
||||
MovementForces _movementForces;
|
||||
PositionUpdateInfo _positionUpdateInfo;
|
||||
protected Unit m_unitMovedByMe; // only ever set for players, and only for direct client control
|
||||
|
||||
@@ -1708,7 +1708,7 @@ namespace Game.Entities
|
||||
|
||||
if (MoveSpline.IsCyclic())
|
||||
{
|
||||
splineSyncTimer.Update((int)diff);
|
||||
splineSyncTimer.Update(diff);
|
||||
if (splineSyncTimer.Passed())
|
||||
{
|
||||
splineSyncTimer.Reset(5000); // Retail value, do not change
|
||||
|
||||
@@ -87,7 +87,7 @@ namespace Game.Entities
|
||||
|
||||
m_serverSideVisibility.SetValue(ServerSideVisibilityType.Ghost, GhostVisibilityType.Alive);
|
||||
|
||||
splineSyncTimer = new TimeTrackerSmall();
|
||||
splineSyncTimer = new TimeTracker();
|
||||
|
||||
m_unitData = new UnitData();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user