Skip to content

Commit

Permalink
Why is this needed???
Browse files Browse the repository at this point in the history
  • Loading branch information
ratkosrb committed Dec 27, 2024
1 parent 99f1e53 commit d21ab77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/Movement/TargetedMovementGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
#include "GameObjectAI.h"
#include "Geometry.h"

//-----------------------------------------------//
template<class T, typename D>
bool TargetedMovementGeneratorMedium<T, D>::IsFarEnoughToMoveStationaryFollower(T &owner) const
{
return !i_target->IsWithinDist(&owner, 1.4f * m_fOffset);
}

//-----------------------------------------------//
template<class T, typename D>
void TargetedMovementGeneratorMedium<T, D>::_setTargetLocation(T &owner)
{
Expand Down Expand Up @@ -666,7 +666,7 @@ bool FollowMovementGenerator<T>::Update(T &owner, uint32 const& time_diff)

// Follow movement may be interrupted
if (!targetMoved && owner.movespline->Finalized())
targetMoved = IsFarEnoughToMoveStationaryFollower(owner);
targetMoved = this->IsFarEnoughToMoveStationaryFollower(owner);

if (targetMoved)
{
Expand Down

1 comment on commit d21ab77

@ShiyoKozuki
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new visual studio?

Please sign in to comment.