diff options
author | ccrs <ccrs@users.noreply.github.com> | 2017-09-03 23:10:24 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2020-08-23 18:46:49 +0200 |
commit | debe97b77a79226876c6a7a99831384a6ce3edcf (patch) | |
tree | 24da80601be4e84ccf3acfc8868818701e91bcad /src | |
parent | f27450d0e8ad5895a7708b602e9eaf5abd45187e (diff) |
Core/Movement: minor correction on WaypointMovementGenerator
remove the CanMove check since it will never trigger
the timer is left there to prevent errors on loading such as leader being created before the other members of the formation making them skip the first movement; purely a workaround
(cherry picked from commit c7d565739b2e4a1fbcd6bd61164510257e7ee90b)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp b/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp index 56d44672cfc..3feb4bfdb62 100644 --- a/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp +++ b/src/server/game/Movement/MovementGenerators/WaypointMovementGenerator.cpp @@ -62,10 +62,7 @@ void WaypointMovementGenerator<Creature>::LoadPath(Creature* creature) return; } - _nextMoveTime.Reset(3000); - - if (CanMove(creature)) - StartMoveNow(creature); + _nextMoveTime.Reset(1000); } void WaypointMovementGenerator<Creature>::DoInitialize(Creature* creature) |