Core/Spells: Normalize Z for last point in a charge path
Normalize the new point that 124398feef adds to a charge path.
This commit is contained in:
1 parent
6681b3600c
commit
e5258f92c8
1 file changed
+1
@@ -924,6 +924,7 @@ void PathGenerator::ReducePathLenghtByDist(float dist)
|
||||
float step = dist / len;
|
||||
// same as nextVec
|
||||
_pathPoints[i + 1] -= diffVec * step;
|
||||
_sourceUnit->UpdateAllowedPositionZ(_pathPoints[i + 1].x, _pathPoints[i + 1].y, _pathPoints[i + 1].z);
|
||||
_pathPoints.resize(i + 2);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user