mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Reduce move far attempts for performance
This commit is contained in:
parent
fd53a8570b
commit
8dc5bdb4c1
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user