]> git.mxchange.org Git - flightgear.git/commitdiff
Fixed an off by one error in node, normal, and face counters.
authorcurt <curt>
Sat, 16 May 1998 13:11:25 +0000 (13:11 +0000)
committercurt <curt>
Sat, 16 May 1998 13:11:25 +0000 (13:11 +0000)
FixObj/Makefile.in
FixObj/obj.c

index 7b70d91da5ce3b62306d9a64cd7cc4d01ef2e493..b42166e35a5b37a16f51582d454bd7c60ec29354 100644 (file)
@@ -347,8 +347,8 @@ INCLUDES += -I$(top_builddir) -I$(top_builddir)/Lib
 
 #---------------------------------------------------------------------------
 # $Log$
-# Revision 1.11  1998/05/13 18:30:20  curt
-# Updated ...
+# Revision 1.12  1998/05/16 13:11:25  curt
+# Fixed an off by one error in node, normal, and face counters.
 #
 # Revision 1.4  1998/04/24 00:44:05  curt
 # Added zlib support.
index fac87b623b5bc2bbcdc38763947dd2efe56a06cb..b06c0d6b054a1c3c80bd067865159d2ac004183f 100644 (file)
@@ -202,9 +202,9 @@ void obj_fix(char *infile, char *outfile) {
     /* I start counting at one because that is how the triangle
        program refers to nodes and normals */
     first = 1;
-    ncount = 1;
-    vncount = 1;
-    fcount = 1;
+    ncount = 0;
+    vncount = 0;
+    fcount = 0;
 
     printf("Reading file:  %s\n", infile);
 
@@ -380,9 +380,12 @@ void obj_fix(char *infile, char *outfile) {
 
 
 /* $Log$
-/* Revision 1.11  1998/04/27 15:59:24  curt
-/* Fixed an off by one error.
+/* Revision 1.12  1998/05/16 13:11:26  curt
+/* Fixed an off by one error in node, normal, and face counters.
 /*
+ * Revision 1.11  1998/04/27 15:59:24  curt
+ * Fixed an off by one error.
+ *
  * Revision 1.10  1998/04/27 03:33:11  curt
  * Code now calculates a center reference points and outputs everything
  * relative to that.  This is useful in the rendering engine to keep everything