mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Movement: 5cc2b41146 codestyle followup
This commit is contained in:
@@ -1033,7 +1033,7 @@ bool PathGenerator::IsInvalidDestinationZ(Unit const* target) const
|
||||
|
||||
void PathGenerator::SetPathLengthLimit(float length)
|
||||
{
|
||||
if (!(uint32(length) % 4))
|
||||
if (!(uint32(length) % uint32(SMOOTH_PATH_STEP_SIZE)))
|
||||
_pointPathLimit = std::min<uint32>(length / SMOOTH_PATH_STEP_SIZE, MAX_POINT_PATH_LENGTH);
|
||||
else
|
||||
_pointPathLimit = std::min<uint32>((length + SMOOTH_PATH_STEP_SIZE) / SMOOTH_PATH_STEP_SIZE, MAX_POINT_PATH_LENGTH);
|
||||
|
||||
@@ -66,7 +66,7 @@ class TC_GAME_API PathGenerator
|
||||
|
||||
// option setters - use optional
|
||||
void SetUseStraightPath(bool useStraightPath) { _useStraightPath = useStraightPath; }
|
||||
void SetPathLengthLimit(float distance);
|
||||
void SetPathLengthLimit(float length);
|
||||
void SetUseRaycast(bool useRaycast) { _useRaycast = useRaycast; }
|
||||
|
||||
// result getters
|
||||
|
||||
Reference in New Issue
Block a user