mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-06-20 15:39:25 +02:00
fix(Core/Movement): Drop FORCED_MOVEMENT_FLIGHT — AC enum has no FLIGHT variant
This commit is contained in:
parent
7cb9dc622c
commit
2c822affd2
@ -215,11 +215,10 @@ bool NewRpgBaseAction::DispatchPathPoints(WorldPosition const& dest,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Match master's walk pace when they're walking and within 5y.
|
// Match master's walk pace when they're walking and within 5y.
|
||||||
// Reference picks FORCED_MOVEMENT_FLIGHT if bot IsFlying.
|
// AC's ForcedMovement enum has no FLIGHT variant — flying is handled
|
||||||
|
// via the MovePoint speed/flight flags below, not the moveMode.
|
||||||
ForcedMovement moveMode = FORCED_MOVEMENT_RUN;
|
ForcedMovement moveMode = FORCED_MOVEMENT_RUN;
|
||||||
if (bot->IsFlying())
|
if (Player* master = botAI->GetMaster())
|
||||||
moveMode = FORCED_MOVEMENT_FLIGHT;
|
|
||||||
else if (Player* master = botAI->GetMaster())
|
|
||||||
{
|
{
|
||||||
if (bot->IsFriendlyTo(master) && master->IsWalking() &&
|
if (bot->IsFriendlyTo(master) && master->IsWalking() &&
|
||||||
bot->GetExactDist2d(master) < 5.0f)
|
bot->GetExactDist2d(master) < 5.0f)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user