Change MovementAction comparison to avoid compile error on Linux

This commit is contained in:
郑佩茹
2022-04-01 10:17:32 -06:00
parent dbb80b6aa2
commit 90be77baae

View File

@@ -301,7 +301,7 @@ bool MovementAction::MoveTo(uint32 mapId, float x, float y, float z, bool idle,
std::ostringstream out; std::ostringstream out;
out << sPlayerbotAIConfig->GetTimestampStr() << "+00,"; out << sPlayerbotAIConfig->GetTimestampStr() << "+00,";
out << bot->GetName() << ","; out << bot->GetName() << ",";
if (telePos && telePos != movePosition) if (telePos && telePos.GetExactDist(movePosition) > 0.001)
startPosition.printWKT({ startPosition, movePosition, telePos }, out, 1); startPosition.printWKT({ startPosition, movePosition, telePos }, out, 1);
else else
startPosition.printWKT({ startPosition, movePosition }, out, 1); startPosition.printWKT({ startPosition, movePosition }, out, 1);