From 76dbf56227342d6a4a0997d510973eed81bf1148 Mon Sep 17 00:00:00 2001 From: bash Date: Sun, 31 May 2026 17:07:31 +0200 Subject: [PATCH] =?UTF-8?q?fix(Core/Movement):=20Drop=20FORCED=5FMOVEMENT?= =?UTF-8?q?=5FFLIGHT=20=E2=80=94=20AC=20enum=20has=20no=20FLIGHT=20variant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp b/src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp index 70f97000e..4d98dd89e 100644 --- a/src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp +++ b/src/Ai/World/Rpg/Action/NewRpgBaseAction.cpp @@ -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)