Another Position comparison fix

This commit is contained in:
郑佩茹
2022-04-04 11:31:48 -06:00
parent 0fccdf60f5
commit 7e2a87a7ea

View File

@@ -452,7 +452,7 @@ bool MovementAction::MoveTo(uint32 mapId, float x, float y, float z, bool idle,
}
//Log bot movement
if (sPlayerbotAIConfig->hasLog("bot_movement.csv") && lastMove.lastMoveShort != movePosition)
if (sPlayerbotAIConfig->hasLog("bot_movement.csv") && lastMove.lastMoveShort.GetExactDist(movePosition) > 0.001)
{
std::ostringstream out;
out << sPlayerbotAIConfig->GetTimestampStr() << "+00,";