forked from speed-dreams/speed-dreams-code
fix accc to not output trailing spaces
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7136 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 225d0d826c27c8710b69e913f8456772bf59aef2 Former-commit-id: d441a45eee2a926186487b8931c1a8dd7af698f5
This commit is contained in:
parent
d5b52b8dab
commit
f5bdb730f9
1 changed files with 12 additions and 12 deletions
|
@ -2029,65 +2029,65 @@ int printOb(ob_t * ob)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fprintf(ofile, "%d %.5f %.5f ", ob->vertexarray[i * 3].indice,
|
fprintf(ofile, "%d %.5f %.5f", ob->vertexarray[i * 3].indice,
|
||||||
ob->textarray[ob->vertexarray[i * 3].indice * 2],
|
ob->textarray[ob->vertexarray[i * 3].indice * 2],
|
||||||
ob->textarray[ob->vertexarray[i * 3].indice * 2 + 1]);
|
ob->textarray[ob->vertexarray[i * 3].indice * 2 + 1]);
|
||||||
|
|
||||||
if (ob->texture1)
|
if (ob->texture1)
|
||||||
fprintf(ofile, "%.5f %.5f ",
|
fprintf(ofile, " %.5f %.5f",
|
||||||
ob->textarray1[ob->vertexarray[i * 3].indice * 2],
|
ob->textarray1[ob->vertexarray[i * 3].indice * 2],
|
||||||
ob->textarray1[ob->vertexarray[i * 3].indice * 2 + 1]);
|
ob->textarray1[ob->vertexarray[i * 3].indice * 2 + 1]);
|
||||||
|
|
||||||
if (ob->texture2)
|
if (ob->texture2)
|
||||||
fprintf(ofile, "%.5f %.5f ",
|
fprintf(ofile, " %.5f %.5f",
|
||||||
ob->textarray2[ob->vertexarray[i * 3].indice * 2],
|
ob->textarray2[ob->vertexarray[i * 3].indice * 2],
|
||||||
ob->textarray2[ob->vertexarray[i * 3].indice * 2 + 1]);
|
ob->textarray2[ob->vertexarray[i * 3].indice * 2 + 1]);
|
||||||
if (ob->texture3)
|
if (ob->texture3)
|
||||||
fprintf(ofile, "%.5f %.5f ",
|
fprintf(ofile, " %.5f %.5f",
|
||||||
ob->textarray3[ob->vertexarray[i * 3].indice * 2],
|
ob->textarray3[ob->vertexarray[i * 3].indice * 2],
|
||||||
ob->textarray3[ob->vertexarray[i * 3].indice * 2 + 1]);
|
ob->textarray3[ob->vertexarray[i * 3].indice * 2 + 1]);
|
||||||
fprintf(ofile, "\n");
|
fprintf(ofile, "\n");
|
||||||
|
|
||||||
fprintf(ofile, "%d %.5f %.5f ",
|
fprintf(ofile, "%d %.5f %.5f",
|
||||||
ob->vertexarray[i * 3 + 1].indice,
|
ob->vertexarray[i * 3 + 1].indice,
|
||||||
ob->textarray[ob->vertexarray[i * 3 + 1].indice * 2],
|
ob->textarray[ob->vertexarray[i * 3 + 1].indice * 2],
|
||||||
ob->textarray[ob->vertexarray[i * 3 + 1].indice * 2 + 1]);
|
ob->textarray[ob->vertexarray[i * 3 + 1].indice * 2 + 1]);
|
||||||
if (ob->texture1)
|
if (ob->texture1)
|
||||||
fprintf(ofile, "%.5f %.5f ",
|
fprintf(ofile, " %.5f %.5f",
|
||||||
ob->textarray1[ob->vertexarray[i * 3 + 1].indice * 2],
|
ob->textarray1[ob->vertexarray[i * 3 + 1].indice * 2],
|
||||||
ob->textarray1[ob->vertexarray[i * 3 + 1].indice * 2
|
ob->textarray1[ob->vertexarray[i * 3 + 1].indice * 2
|
||||||
+ 1]);
|
+ 1]);
|
||||||
|
|
||||||
if (ob->texture2)
|
if (ob->texture2)
|
||||||
fprintf(ofile, "%.5f %.5f ",
|
fprintf(ofile, " %.5f %.5f",
|
||||||
ob->textarray2[ob->vertexarray[i * 3 + 1].indice * 2],
|
ob->textarray2[ob->vertexarray[i * 3 + 1].indice * 2],
|
||||||
ob->textarray2[ob->vertexarray[i * 3 + 1].indice * 2
|
ob->textarray2[ob->vertexarray[i * 3 + 1].indice * 2
|
||||||
+ 1]);
|
+ 1]);
|
||||||
if (ob->texture3)
|
if (ob->texture3)
|
||||||
fprintf(ofile, "%.5f %.5f ",
|
fprintf(ofile, " %.5f %.5f",
|
||||||
ob->textarray3[ob->vertexarray[i * 3 + 1].indice * 2],
|
ob->textarray3[ob->vertexarray[i * 3 + 1].indice * 2],
|
||||||
ob->textarray3[ob->vertexarray[i * 3 + 1].indice * 2
|
ob->textarray3[ob->vertexarray[i * 3 + 1].indice * 2
|
||||||
+ 1]);
|
+ 1]);
|
||||||
fprintf(ofile, "\n");
|
fprintf(ofile, "\n");
|
||||||
|
|
||||||
fprintf(ofile, "%d %.5f %.5f ",
|
fprintf(ofile, "%d %.5f %.5f",
|
||||||
ob->vertexarray[i * 3 + 2].indice,
|
ob->vertexarray[i * 3 + 2].indice,
|
||||||
ob->textarray[ob->vertexarray[i * 3 + 2].indice * 2],
|
ob->textarray[ob->vertexarray[i * 3 + 2].indice * 2],
|
||||||
ob->textarray[ob->vertexarray[i * 3 + 2].indice * 2 + 1]);
|
ob->textarray[ob->vertexarray[i * 3 + 2].indice * 2 + 1]);
|
||||||
if (ob->texture1)
|
if (ob->texture1)
|
||||||
fprintf(ofile, "%.5f %.5f ",
|
fprintf(ofile, " %.5f %.5f",
|
||||||
ob->textarray1[ob->vertexarray[i * 3 + 2].indice * 2],
|
ob->textarray1[ob->vertexarray[i * 3 + 2].indice * 2],
|
||||||
ob->textarray1[ob->vertexarray[i * 3 + 2].indice * 2
|
ob->textarray1[ob->vertexarray[i * 3 + 2].indice * 2
|
||||||
+ 1]);
|
+ 1]);
|
||||||
|
|
||||||
if (ob->texture2)
|
if (ob->texture2)
|
||||||
fprintf(ofile, "%.5f %.5f ",
|
fprintf(ofile, " %.5f %.5f",
|
||||||
ob->textarray2[ob->vertexarray[i * 3 + 2].indice * 2],
|
ob->textarray2[ob->vertexarray[i * 3 + 2].indice * 2],
|
||||||
ob->textarray2[ob->vertexarray[i * 3 + 2].indice * 2
|
ob->textarray2[ob->vertexarray[i * 3 + 2].indice * 2
|
||||||
+ 1]);
|
+ 1]);
|
||||||
if (ob->texture3)
|
if (ob->texture3)
|
||||||
{
|
{
|
||||||
fprintf(ofile, "%.5f %.5f ",
|
fprintf(ofile, " %.5f %.5f",
|
||||||
ob->textarray3[ob->vertexarray[i * 3 + 2].indice * 2],
|
ob->textarray3[ob->vertexarray[i * 3 + 2].indice * 2],
|
||||||
ob->textarray3[ob->vertexarray[i * 3 + 2].indice * 2
|
ob->textarray3[ob->vertexarray[i * 3 + 2].indice * 2
|
||||||
+ 1]);
|
+ 1]);
|
||||||
|
|
Loading…
Reference in a new issue