From 8dc5bdb4c19e327be81b9d911958a87a14ee4493 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Tue, 31 Dec 2024 20:51:09 +0800 Subject: [PATCH] Reduce move far attempts for performance --- src/strategy/rpg/NewRpgAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategy/rpg/NewRpgAction.cpp b/src/strategy/rpg/NewRpgAction.cpp index 35694415..ac2c7fb1 100644 --- a/src/strategy/rpg/NewRpgAction.cpp +++ b/src/strategy/rpg/NewRpgAction.cpp @@ -241,7 +241,7 @@ bool NewRpgGoFarAwayPosAction::MoveFarTo(WorldPosition dest) const float z = bot->GetPositionZ(); float rx, ry, rz; bool found = false; - int attempt = 10; + int attempt = 3; while (--attempt) { float angle = bot->GetAngle(&dest);