diff --git a/cocos2dx/draw_nodes/CCDrawNode.cpp b/cocos2dx/draw_nodes/CCDrawNode.cpp index dcc12a8723..4ed67e0ac1 100644 --- a/cocos2dx/draw_nodes/CCDrawNode.cpp +++ b/cocos2dx/draw_nodes/CCDrawNode.cpp @@ -360,7 +360,7 @@ void DrawNode::drawPolygon(Point *verts, unsigned int count, const Color4F &fill V2F_C4B_T2F_Triangle *triangles = (V2F_C4B_T2F_Triangle *)(_buffer + _bufferCount); V2F_C4B_T2F_Triangle *cursor = triangles; - float inset = (outline == 0.0 ? 0.5 : 0.0); + float inset = (outline == false ? 0.5 : 0.0); for(unsigned int i = 0; i < count-2; i++) { Vertex2F v0 = v2fsub(__v2f(verts[0 ]), v2fmult(extrude[0 ].offset, inset));