Skip to content

Commit

Permalink
-Stay fix: Re-added stay position distance limitation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlikely4r committed Jun 9, 2024
1 parent 50d2b40 commit 08c60e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playerbot/strategy/actions/PositionAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ bool ReturnToStayPositionAction::isPossible()
if (stayPosition.isSet())
{
const float distance = bot->GetDistance(stayPosition.x, stayPosition.y, stayPosition.z);
if (distance > sPlayerbotAIConfig.reactDistance && 1==2)
if (distance > sPlayerbotAIConfig.reactDistance)
{
ai->TellError(GetMaster(), "The stay position is too far to return. I am going to stay where I am now");

Expand Down

0 comments on commit 08c60e0

Please sign in to comment.