From 90be77baaed5af28b2d61d0f84032f308ac89c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BD=A9=E8=8C=B9?= Date: Fri, 1 Apr 2022 10:17:32 -0600 Subject: [PATCH] Change MovementAction comparison to avoid compile error on Linux --- src/strategy/actions/MovementActions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy/actions/MovementActions.cpp b/src/strategy/actions/MovementActions.cpp index 0c5387a5..522c185a 100644 --- a/src/strategy/actions/MovementActions.cpp +++ b/src/strategy/actions/MovementActions.cpp @@ -301,7 +301,7 @@ bool MovementAction::MoveTo(uint32 mapId, float x, float y, float z, bool idle, std::ostringstream out; out << sPlayerbotAIConfig->GetTimestampStr() << "+00,"; out << bot->GetName() << ","; - if (telePos && telePos != movePosition) + if (telePos && telePos.GetExactDist(movePosition) > 0.001) startPosition.printWKT({ startPosition, movePosition, telePos }, out, 1); else startPosition.printWKT({ startPosition, movePosition }, out, 1);