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:
jackpoz
2015-07-05 11:49:05 +02:00
parent 6681b3600c
commit e5258f92c8

View File

@@ -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;
}