Skip to content

Commit aa8c287

Browse files
committed
Core/Movement: remove unnecessary UpdateAllowedPositionZ in FollowMovementGenerator
Already called in GetNearPoint
1 parent 825c88e commit aa8c287

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/server/game/Movement/MovementGenerators/FollowMovementGenerator.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,6 @@ bool FollowMovementGenerator::Update(Unit* owner, uint32 diff)
139139

140140
target->GetNearPoint(owner, x, y, z, _range, target->ToAbsoluteAngle(tAngle));
141141

142-
if (owner->IsHovering())
143-
owner->UpdateAllowedPositionZ(x, y, z);
144-
145142
// pets are allowed to "cheat" on pathfinding when following their master
146143
bool allowShortcut = false;
147144
if (Pet* oPet = owner->ToPet())

0 commit comments

Comments
 (0)