Core/Mmaps: Charge ignoring z position of target (#17516)
* Core/Mmaps: Charge ignoring z position of target By cemak closes #15011
This commit is contained in:
1 parent
b56a40436b
commit
67bb661def
3 files changed
+10
No files matched your search
@@ -940,3 +940,8 @@ void PathGenerator::ReducePathLenghtByDist(float dist)
|
||||
nextVec = currVec; // we're going backwards
|
||||
}
|
||||
}
|
||||
|
||||
bool PathGenerator::IsInvalidDestinationZ(Unit const* target) const
|
||||
{
|
||||
(target->GetPositionZ() - GetActualEndPosition().z) > 5.0f;
|
||||
}
|
||||
Reference in new issue
Block a user