mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/PathFinding: re-added a accidentally dropped path length limit sanitizer
This commit is contained in:
@@ -1041,7 +1041,7 @@ bool PathGenerator::IsInvalidDestinationZ(Unit const* target) const
|
||||
|
||||
void PathGenerator::SetPathLengthLimit(float length)
|
||||
{
|
||||
_pointPathLimit = uint32(ceilf(length / RECAST_PATH_STEP_SIZE));
|
||||
_pointPathLimit = std::min<uint32>(uint32(ceilf(length / RECAST_PATH_STEP_SIZE)), MAX_PATH_LENGTH);
|
||||
}
|
||||
|
||||
void PathGenerator::AddFarFromPolyFlags(bool startFarFromPoly, bool endFarFromPoly)
|
||||
|
||||
Reference in New Issue
Block a user