Core/Movement: 5cc2b41146 codestyle followup
This commit is contained in:
1 parent
5cc2b41146
commit
b6ea5033fa
2 files changed
+2
-2
No files matched your search
@@ -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