refactor(Core/Travel): Drop redundant NAV_GROUND_STEEP excludes (core handles via IsBot)

This commit is contained in:
bash 2026-05-10 20:20:07 +02:00
parent 703d6f95ec
commit 0eaf16458f
5 changed files with 0 additions and 7 deletions

View File

@ -4292,7 +4292,6 @@ bool ArenaTactics::Execute(Event /*event*/)
if (losBlocked) if (losBlocked)
{ {
PathGenerator path(bot); PathGenerator path(bot);
path.AddExcludeFlag(NAV_GROUND_STEEP);
path.CalculatePath(target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), false); path.CalculatePath(target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), false);
if (path.GetPathType() != PATHFIND_NOPATH) if (path.GetPathType() != PATHFIND_NOPATH)

View File

@ -124,7 +124,6 @@ bool GoAction::Execute(Event event)
if (botAI->HasStrategy("debug move", BOT_STATE_NON_COMBAT)) if (botAI->HasStrategy("debug move", BOT_STATE_NON_COMBAT))
{ {
PathGenerator path(bot); PathGenerator path(bot);
path.AddExcludeFlag(NAV_GROUND_STEEP);
path.CalculatePath(x, y, z, false); path.CalculatePath(x, y, z, false);

View File

@ -977,7 +977,6 @@ bool MovementAction::ReachCombatTo(Unit* target, float distance)
return false; return false;
PathGenerator path(bot); PathGenerator path(bot);
path.AddExcludeFlag(NAV_GROUND_STEEP);
path.CalculatePath(tx, ty, tz, false); path.CalculatePath(tx, ty, tz, false);
PathType type = path.GetPathType(); PathType type = path.GetPathType();
int typeOk = PATHFIND_NORMAL | PATHFIND_INCOMPLETE | PATHFIND_SHORTCUT; int typeOk = PATHFIND_NORMAL | PATHFIND_INCOMPLETE | PATHFIND_SHORTCUT;
@ -1885,7 +1884,6 @@ PathResult MovementAction::GeneratePath(float x, float y, float z, uint32 accept
{ {
PathResult result; PathResult result;
PathGenerator gen(bot); PathGenerator gen(bot);
gen.AddExcludeFlag(NAV_GROUND_STEEP);
gen.CalculatePath(x, y, z, forceDestination); gen.CalculatePath(x, y, z, forceDestination);
result.pathType = gen.GetPathType(); result.pathType = gen.GetPathType();
result.reachable = !(result.pathType & (~acceptMask)); result.reachable = !(result.pathType & (~acceptMask));

View File

@ -719,7 +719,6 @@ std::vector<WorldPosition> WorldPosition::getPathStepFrom(WorldPosition startPos
} }
PathGenerator path(pathUnit); PathGenerator path(pathUnit);
path.AddExcludeFlag(NAV_GROUND_STEEP);
auto result = getPathStepFrom(startPos, path); auto result = getPathStepFrom(startPos, path);
if (tempCreature) if (tempCreature)
@ -852,7 +851,6 @@ std::vector<WorldPosition> WorldPosition::getPathFromPath(std::vector<WorldPosit
} }
PathGenerator path(pathUnit); PathGenerator path(pathUnit);
path.AddExcludeFlag(NAV_GROUND_STEEP);
// Limit the pathfinding attempts // Limit the pathfinding attempts
for (uint32 i = 0; i < maxAttempt; i++) for (uint32 i = 0; i < maxAttempt; i++)

View File

@ -1256,7 +1256,6 @@ TravelNodeRoute TravelNodeMap::FindRouteNearestNodes(WorldPosition startPos, Wor
if (startNodePosition.GetMapId() == bot->GetMapId()) if (startNodePosition.GetMapId() == bot->GetMapId())
{ {
PathGenerator path(bot); PathGenerator path(bot);
path.AddExcludeFlag(NAV_GROUND_STEEP);
path.CalculatePath(startNodePosition.GetPositionX(), startNodePosition.GetPositionY(), startNodePosition.GetPositionZ()); path.CalculatePath(startNodePosition.GetPositionX(), startNodePosition.GetPositionY(), startNodePosition.GetPositionZ());
PathType type = path.GetPathType(); PathType type = path.GetPathType();
bool reachable = !(type & ~(PATHFIND_NORMAL | PATHFIND_INCOMPLETE | PATHFIND_FARFROMPOLY)); bool reachable = !(type & ~(PATHFIND_NORMAL | PATHFIND_INCOMPLETE | PATHFIND_FARFROMPOLY));