Core/Spells: Normalize Z for last point in a charge path

Normalize the new point that 124398feef adds to a charge path.

(cherry picked from commit e5258f92c8057d453b890976eb18e98e6de96d07)
This commit is contained in:
jackpoz
2015-07-12 12:45:36 +01:00
committed by DDuarte
parent 213baefde0
commit 0c09d6311a
@@ -925,6 +925,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;
}