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
1638bb1828
commit
76dbf56227
@ -215,11 +215,10 @@ bool NewRpgBaseAction::DispatchPathPoints(WorldPosition const& dest,
|
||||
}
|
||||
|
||||
// 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;
|
||||
if (bot->IsFlying())
|
||||
moveMode = FORCED_MOVEMENT_FLIGHT;
|
||||
else if (Player* master = botAI->GetMaster())
|
||||
if (Player* master = botAI->GetMaster())
|
||||
{
|
||||
if (bot->IsFriendlyTo(master) && master->IsWalking() &&
|
||||
bot->GetExactDist2d(master) < 5.0f)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user