torcs-1.3.6-format.patch 1012 B

1234567891011121314151617181920212223242526272829303132333435
  1. --- a/src/tools/texmapper/maintexmapper.cpp 2015-12-23 20:55:24.874102363 +0100
  2. +++ b/src/tools/texmapper/maintexmapper.cpp 2015-12-23 20:55:55.071553325 +0100
  3. @@ -103,7 +103,7 @@
  4. {
  5. int i, j;
  6. - printf(title);
  7. + printf("%s", title);
  8. for (j = 0; j < 4; j ++){
  9. for (i = 0; i < 4; i ++) {
  10. printf("%.6f ", m[i][j]);
  11. --- a/src/tools/trackgen/objects.cpp 2015-12-23 20:59:49.671287196 +0100
  12. +++ b/src/tools/trackgen/objects.cpp 2015-12-23 21:02:21.639523189 +0100
  13. @@ -234,9 +234,9 @@
  14. ssgLeaf *vt = (ssgLeaf *)ent;
  15. if (vt->getCullFace() == TRUE) {
  16. - surf = "SURF 0x10\n";
  17. + surf = "0x10";
  18. } else {
  19. - surf = "SURF 0x30\n";
  20. + surf = "0x30";
  21. }
  22. int num_verts = vt->getNumVertices();
  23. @@ -304,7 +304,7 @@
  24. fprintf (save_fd, "numsurf %d\n", num_tris);
  25. for (i = 0; i < num_tris; i++) {
  26. - fprintf (save_fd, surf);
  27. + fprintf (save_fd, "SURF %s\n", surf);
  28. fprintf (save_fd, "mat 0\n");
  29. fprintf (save_fd, "refs 3\n");
  30. fprintf (save_fd, "%d %g %g\n",