summaryrefslogtreecommitdiff
path: root/user/torcs/torcs-1.3.6-format.patch
blob: da59c4da4fa05ccbb793e77b61469c0ab2f594f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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",