diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-10-24 01:15:24 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-10-24 01:15:24 +0000 |
commit | 6fb1b6516a1493d708b0cbad120d6a2bf1251b05 (patch) | |
tree | 73ed5401526559f7f38d8ccc28066904b4e4f834 /user/torcs/torcs-1.3.6-format.patch | |
parent | 35d3464218da6f5ae5025fec65dd1caa08d31824 (diff) | |
download | packages-6fb1b6516a1493d708b0cbad120d6a2bf1251b05.tar.gz packages-6fb1b6516a1493d708b0cbad120d6a2bf1251b05.tar.bz2 packages-6fb1b6516a1493d708b0cbad120d6a2bf1251b05.tar.xz packages-6fb1b6516a1493d708b0cbad120d6a2bf1251b05.zip |
user/torcs: new buggy package
Diffstat (limited to 'user/torcs/torcs-1.3.6-format.patch')
-rw-r--r-- | user/torcs/torcs-1.3.6-format.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/user/torcs/torcs-1.3.6-format.patch b/user/torcs/torcs-1.3.6-format.patch new file mode 100644 index 000000000..da59c4da4 --- /dev/null +++ b/user/torcs/torcs-1.3.6-format.patch @@ -0,0 +1,34 @@ +--- a/src/tools/texmapper/maintexmapper.cpp 2015-12-23 20:55:24.874102363 +0100 ++++ b/src/tools/texmapper/maintexmapper.cpp 2015-12-23 20:55:55.071553325 +0100 +@@ -103,7 +103,7 @@ + { + int i, j; + +- printf(title); ++ printf("%s", title); + for (j = 0; j < 4; j ++){ + for (i = 0; i < 4; i ++) { + printf("%.6f ", m[i][j]); +--- a/src/tools/trackgen/objects.cpp 2015-12-23 20:59:49.671287196 +0100 ++++ b/src/tools/trackgen/objects.cpp 2015-12-23 21:02:21.639523189 +0100 +@@ -234,9 +234,9 @@ +
+ ssgLeaf *vt = (ssgLeaf *)ent;
+ if (vt->getCullFace() == TRUE) {
+- surf = "SURF 0x10\n";
++ surf = "0x10";
+ } else {
+- surf = "SURF 0x30\n";
++ surf = "0x30";
+ }
+
+ int num_verts = vt->getNumVertices();
+@@ -304,7 +304,7 @@ + fprintf (save_fd, "numsurf %d\n", num_tris);
+
+ for (i = 0; i < num_tris; i++) {
+- fprintf (save_fd, surf);
++ fprintf (save_fd, "SURF %s\n", surf);
+ fprintf (save_fd, "mat 0\n");
+ fprintf (save_fd, "refs 3\n");
+ fprintf (save_fd, "%d %g %g\n",
|