closed #2393:fix a bug caused by marking functions as deprecated

This commit is contained in:
minggo 2013-07-23 14:13:44 +08:00
parent 2c17762669
commit b416511e6b
1 changed files with 2 additions and 2 deletions

View File

@ -45,9 +45,9 @@ void ccVertexLineToPolygon(Point *points, float stroke, Vertex2F *vertices, unsi
Point perpVector;
if(i == 0)
(p1 - points[i+1]).normalize().getPerp();
perpVector = (p1 - points[i+1]).normalize().getPerp();
else if(i == nuPointsMinus)
(points[i-1] - p1).normalize().getPerp();
perpVector = (points[i-1] - p1).normalize().getPerp();
else
{
Point p2 = points[i+1];