mirror of https://github.com/axmolengine/axmol.git
Use explicit boolean compare instead of implicit float -> boolean conversion
This commit is contained in:
parent
db00378ead
commit
934ea7510f
|
@ -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 *triangles = (V2F_C4B_T2F_Triangle *)(_buffer + _bufferCount);
|
||||||
V2F_C4B_T2F_Triangle *cursor = triangles;
|
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++)
|
for(unsigned int i = 0; i < count-2; i++)
|
||||||
{
|
{
|
||||||
Vertex2F v0 = v2fsub(__v2f(verts[0 ]), v2fmult(extrude[0 ].offset, inset));
|
Vertex2F v0 = v2fsub(__v2f(verts[0 ]), v2fmult(extrude[0 ].offset, inset));
|
||||||
|
|
Loading…
Reference in New Issue