accc: don't compare bool with int
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7803 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: d712130d2dc00e6e3078ae53a9ce4a209bdf582a Former-commit-id: 673ae000005f50d0ae1e2a83b572095a62f6940f
This commit is contained in:
parent
d1e0cb6e98
commit
d267f54bbf
1 changed files with 5 additions and 5 deletions
|
@ -2376,7 +2376,7 @@ void stripifyOb(FILE * ofile, ob_t * object, bool writeit)
|
||||||
int tritotal = 0;
|
int tritotal = 0;
|
||||||
int multitex = 0;
|
int multitex = 0;
|
||||||
|
|
||||||
if (object->numsurf < 3 && writeit == 0)
|
if (object->numsurf < 3 && !writeit)
|
||||||
return;
|
return;
|
||||||
fprintf(stderr, "stripifying %s \r", object->name.c_str());
|
fprintf(stderr, "stripifying %s \r", object->name.c_str());
|
||||||
sprintf(filename, "temp.obj");
|
sprintf(filename, "temp.obj");
|
||||||
|
@ -2514,7 +2514,7 @@ void stripifyOb(FILE * ofile, ob_t * object, bool writeit)
|
||||||
std::vector<tcoord_t> stripvertexarray(object->numvertice * 10);
|
std::vector<tcoord_t> stripvertexarray(object->numvertice * 10);
|
||||||
k = 0;
|
k = 0;
|
||||||
dege = 0;
|
dege = 0;
|
||||||
if (writeit == 1)
|
if (writeit)
|
||||||
{
|
{
|
||||||
fprintf(ofile, "numsurf %u\n", NumStrips);
|
fprintf(ofile, "numsurf %u\n", NumStrips);
|
||||||
|
|
||||||
|
@ -2531,7 +2531,7 @@ void stripifyOb(FILE * ofile, ob_t * object, bool writeit)
|
||||||
v2 = StripPoint[StripStart[i] + 1];
|
v2 = StripPoint[StripStart[i] + 1];
|
||||||
debj = 2;
|
debj = 2;
|
||||||
tri = 0;
|
tri = 0;
|
||||||
if (writeit == 1)
|
if (writeit)
|
||||||
{
|
{
|
||||||
/** For some reason the surf attribute is modified for the output.
|
/** For some reason the surf attribute is modified for the output.
|
||||||
* The surfaces are made double-sided, although stripification doesn't
|
* The surfaces are made double-sided, although stripification doesn't
|
||||||
|
@ -2595,7 +2595,7 @@ void stripifyOb(FILE * ofile, ob_t * object, bool writeit)
|
||||||
v0 = StripPoint[StripStart[i] + j];
|
v0 = StripPoint[StripStart[i] + j];
|
||||||
/*printf("adding point %d\n",v0);*/
|
/*printf("adding point %d\n",v0);*/
|
||||||
|
|
||||||
if (writeit == 0)
|
if (!writeit)
|
||||||
{
|
{
|
||||||
stripvertexarray[k].indice = v1;
|
stripvertexarray[k].indice = v1;
|
||||||
stripvertexarray[k].uv = object->textarray[v1];
|
stripvertexarray[k].uv = object->textarray[v1];
|
||||||
|
@ -2643,7 +2643,7 @@ void stripifyOb(FILE * ofile, ob_t * object, bool writeit)
|
||||||
printf("strips for %s : number of strips %u : average of points triangles by strips %.2f\n",
|
printf("strips for %s : number of strips %u : average of points triangles by strips %.2f\n",
|
||||||
object->name.c_str(), NumStrips,
|
object->name.c_str(), NumStrips,
|
||||||
(float) ((float) tritotal - (float) dege) / ((float) NumStrips));
|
(float) ((float) tritotal - (float) dege) / ((float) NumStrips));
|
||||||
if (writeit == 0)
|
if (!writeit)
|
||||||
{
|
{
|
||||||
if (tritotal != object->numsurf)
|
if (tritotal != object->numsurf)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue