mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-21 07:59:25 +02:00
fix(Core/RPG): Drop forceDestination on MoveRandomNear reachability test
This commit is contained in:
parent
db0b276f43
commit
2e20210fad
@ -424,7 +424,7 @@ bool NewRpgBaseAction::MoveRandomNear(float moveStep, MovementPriority priority,
|
|||||||
float dy = y + distance * sin(angle);
|
float dy = y + distance * sin(angle);
|
||||||
float dz = z;
|
float dz = z;
|
||||||
|
|
||||||
PathResult path = GeneratePath(dx, dy, dz, RELAXED_PATH_ACCEPT_MASK);
|
PathResult path = GeneratePath(dx, dy, dz, RELAXED_PATH_ACCEPT_MASK, /*forceDestination=*/false);
|
||||||
|
|
||||||
if (!path.reachable)
|
if (!path.reachable)
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user