Core/Common: Merge TimeTrackerSmall with TimeTracker
Port From (https://github.com/TrinityCore/TrinityCore/commit/8809d54ca2daa230b1439f012c8b10ee88d6beae)
This commit is contained in:
@@ -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