Core/Movement: Removed default arg values from MovementGenerator Pause and Resume functions

Port From (https://github.com/TrinityCore/TrinityCore/commit/6c533482c6ae1a4dd9e525bd225197d4e65e735f)
This commit is contained in:
hondacrx
2024-03-14 10:58:01 -04:00
parent 8f573ee28d
commit 7fd318d306
3 changed files with 6 additions and 6 deletions
@@ -35,10 +35,10 @@ namespace Game.Movement
public virtual void UnitSpeedChanged() { } public virtual void UnitSpeedChanged() { }
// timer in ms // timer in ms
public virtual void Pause(uint timer = 0) { } public virtual void Pause(uint timer) { }
// timer in ms // timer in ms
public virtual void Resume(uint overrideTimer = 0) { } public virtual void Resume(uint overrideTimer) { }
// used by Evade code for select point to evade with expected restart default movement // used by Evade code for select point to evade with expected restart default movement
public virtual bool GetResetPosition(Unit u, out float x, out float y, out float z) public virtual bool GetResetPosition(Unit u, out float x, out float y, out float z)
@@ -116,7 +116,7 @@ namespace Game.Movement
owner.GetAI().MovementInform(MovementGeneratorType.Random, 0); owner.GetAI().MovementInform(MovementGeneratorType.Random, 0);
} }
public override void Pause(uint timer = 0) public override void Pause(uint timer)
{ {
if (timer != 0) if (timer != 0)
{ {
@@ -131,7 +131,7 @@ namespace Game.Movement
} }
} }
public override void Resume(uint overrideTimer = 0) public override void Resume(uint overrideTimer)
{ {
if (overrideTimer != 0) if (overrideTimer != 0)
_timer.Reset(overrideTimer); _timer.Reset(overrideTimer);
@@ -77,7 +77,7 @@ namespace Game.Movement
_duration = new(duration.Value); _duration = new(duration.Value);
} }
public override void Pause(uint timer = 0) public override void Pause(uint timer)
{ {
if (timer != 0) if (timer != 0)
{ {
@@ -97,7 +97,7 @@ namespace Game.Movement
} }
} }
public override void Resume(uint overrideTimer = 0) public override void Resume(uint overrideTimer)
{ {
if (overrideTimer != 0) if (overrideTimer != 0)
_nextMoveTime.Reset(overrideTimer); _nextMoveTime.Reset(overrideTimer);