mirror of https://github.com/axmolengine/axmol.git
closed #2393:fix a bug caused by marking functions as deprecated
This commit is contained in:
parent
2c17762669
commit
b416511e6b
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue