Use explicit boolean compare instead of implicit float -> boolean conversion

This commit is contained in:
folecr 2013-08-09 19:36:50 -07:00
parent db00378ead
commit 934ea7510f
1 changed files with 1 additions and 1 deletions

View File

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