Reduce move far attempts for performance

This commit is contained in:
Yunfan Li
2024-12-31 20:51:09 +08:00
parent fd53a8570b
commit 8dc5bdb4c1

View File

@@ -241,7 +241,7 @@ bool NewRpgGoFarAwayPosAction::MoveFarTo(WorldPosition dest)
const float z = bot->GetPositionZ(); const float z = bot->GetPositionZ();
float rx, ry, rz; float rx, ry, rz;
bool found = false; bool found = false;
int attempt = 10; int attempt = 3;
while (--attempt) while (--attempt)
{ {
float angle = bot->GetAngle(&dest); float angle = bot->GetAngle(&dest);