]> git.mxchange.org Git - flightgear.git/commitdiff
Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
authorcurt <curt>
Fri, 24 Apr 1998 00:51:07 +0000 (00:51 +0000)
committercurt <curt>
Fri, 24 Apr 1998 00:51:07 +0000 (00:51 +0000)
Tweaked the scenery file extentions to be "file.obj" (uncompressed)
or "file.obz" (compressed.)

Scenery/obj.c
Scenery/obj.h
Scenery/scenery.c
Scenery/tilecache.cxx
Scenery/tilecache.hxx
Scenery/tilemgr.cxx

index 0c1374b2dfd51164aa74d41cf4529b726da968f6..822167c17c87aaceb86196c7fe1e36d2e695d52c 100644 (file)
@@ -25,7 +25,9 @@
  **************************************************************************/
 
 
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
 
 #ifdef HAVE_WINDOWS_H
 #  include <windows.h>
@@ -102,11 +104,12 @@ GLint fgObjLoad(char *path, struct fgCartesianPoint *ref, double *radius) {
     int winding;
     int last1, last2, odd;
 
-    // First try "path.gz"
+    // First try "path.obz" (compressed format)
     strcpy(gzpath, path);
-    strcat(gzpath, ".gz");
+    strcat(gzpath, ".obz");
     if ( (f = gzopen(gzpath, "r")) == NULL ) {
-       // Next try "path"
+       // Next try "path.obj" (uncompressed format)
+       strcat(path, ".obj");
        if ( (f = gzopen(path, "r")) == NULL ) {
            fgPrintf(FG_TERRAIN, FG_ALERT, "Cannot open file: %s\n", path);
            return(-1);
@@ -398,9 +401,14 @@ GLint fgObjLoad(char *path, struct fgCartesianPoint *ref, double *radius) {
 
 
 /* $Log$
-/* Revision 1.28  1998/04/22 13:22:44  curt
-/* C++ - ifing the code a bit.
+/* Revision 1.29  1998/04/24 00:51:07  curt
+/* Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
+/* Tweaked the scenery file extentions to be "file.obj" (uncompressed)
+/* or "file.obz" (compressed.)
 /*
+ * Revision 1.28  1998/04/22 13:22:44  curt
+ * C++ - ifing the code a bit.
+ *
  * Revision 1.27  1998/04/18 04:13:17  curt
  * Added zlib on the fly decompression support for loading scenery objects.
  *
index aa601c3d82146b9b89f23b80185351387766bdcd..c3c1f5b01c870c7486b4fe16299de7016a1d6a96 100644 (file)
@@ -28,7 +28,9 @@
 #define _OBJ_H
 
 
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
 
 #ifdef HAVE_WINDOWS_H
 #  include <windows.h>
@@ -57,9 +59,14 @@ GLint fgObjLoad(char *path, struct fgCartesianPoint *ref, double *radius);
 
 
 /* $Log$
-/* Revision 1.9  1998/04/22 13:22:45  curt
-/* C++ - ifing the code a bit.
+/* Revision 1.10  1998/04/24 00:51:07  curt
+/* Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
+/* Tweaked the scenery file extentions to be "file.obj" (uncompressed)
+/* or "file.obz" (compressed.)
 /*
+ * Revision 1.9  1998/04/22 13:22:45  curt
+ * C++ - ifing the code a bit.
+ *
  * Revision 1.8  1998/04/21 17:02:43  curt
  * Prepairing for C++ integration.
  *
index c42df065756ca23a1a586c144edc19ba3bd31c36..ffce65184fc9772f135c1d1bdaf927ba5ea0c1ff 100644 (file)
@@ -25,7 +25,9 @@
  **************************************************************************/
 
 
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
 
 #ifdef HAVE_WINDOWS_H
 #  include <windows.h>
@@ -114,9 +116,14 @@ void fgSceneryRender( void ) {
 
 
 /* $Log$
-/* Revision 1.40  1998/04/18 04:14:06  curt
-/* Moved fg_debug.c to it's own library.
+/* Revision 1.41  1998/04/24 00:51:08  curt
+/* Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
+/* Tweaked the scenery file extentions to be "file.obj" (uncompressed)
+/* or "file.obz" (compressed.)
 /*
+ * Revision 1.40  1998/04/18 04:14:06  curt
+ * Moved fg_debug.c to it's own library.
+ *
  * Revision 1.39  1998/04/08 23:30:07  curt
  * Adopted Gnu automake/autoconf system.
  *
index 61fb0923a2e92144565a7d62315224d6fa74fefc..4735417e12ec0606c50395ec0472a483c57fefc2 100644 (file)
@@ -24,7 +24,9 @@
  **************************************************************************/
 
 
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
 
 #ifdef HAVE_WINDOWS_H
 #  include <windows.h>
@@ -100,7 +102,7 @@ void fgTileCacheEntryFillIn( int index, struct fgBUCKET *p ) {
 
     /* Load the appropriate area and get the display list pointer */
     fgBucketGenBasePath(p, base_path);
-    sprintf(file_name, "%s/Scenery/%s/%ld.obj", g->root_dir, 
+    sprintf(file_name, "%s/Scenery/%s/%ld", g->root_dir, 
            base_path, fgBucketGenIndex(p));
     tile_cache[index].display_list = 
        fgObjLoad(file_name, &tile_cache[index].local_ref,
@@ -198,9 +200,14 @@ int fgTileCacheNextAvail( void ) {
 
 
 /* $Log$
-/* Revision 1.1  1998/04/22 13:22:46  curt
-/* C++ - ifing the code a bit.
+/* Revision 1.2  1998/04/24 00:51:08  curt
+/* Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
+/* Tweaked the scenery file extentions to be "file.obj" (uncompressed)
+/* or "file.obz" (compressed.)
 /*
+ * Revision 1.1  1998/04/22 13:22:46  curt
+ * C++ - ifing the code a bit.
+ *
  * Revision 1.11  1998/04/18 04:14:07  curt
  * Moved fg_debug.c to it's own library.
  *
index 5f8c41da370b0ccea0f066e20ad7e4365d8ab438..d59efa0ae23f9a0729c4f24849d67090bb76899b 100644 (file)
@@ -33,7 +33,9 @@
 #endif                                   
 
 
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
 
 #ifdef HAVE_WINDOWS_H
 #  include <windows.h>
@@ -86,9 +88,14 @@ void fgTileCacheEntryInfo( int index, GLint *display_list,
 
 
 /* $Log$
-/* Revision 1.1  1998/04/22 13:22:47  curt
-/* C++ - ifing the code a bit.
+/* Revision 1.2  1998/04/24 00:51:08  curt
+/* Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
+/* Tweaked the scenery file extentions to be "file.obj" (uncompressed)
+/* or "file.obz" (compressed.)
 /*
+ * Revision 1.1  1998/04/22 13:22:47  curt
+ * C++ - ifing the code a bit.
+ *
  * Revision 1.10  1998/04/21 17:02:45  curt
  * Prepairing for C++ integration.
  *
index eca8feed27ccc4ba14b314c41f0a9798c35ff40c..8d581b8cc8ed97593a2faa0a4fb07a39b64ad92b 100644 (file)
@@ -25,7 +25,9 @@
  **************************************************************************/
 
 
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
 
 #ifdef HAVE_WINDOWS_H
 #  include <windows.h>
@@ -219,9 +221,14 @@ void fgTileMgrRender( void ) {
 
 
 /* $Log$
-/* Revision 1.1  1998/04/22 13:22:48  curt
-/* C++ - ifing the code a bit.
+/* Revision 1.2  1998/04/24 00:51:09  curt
+/* Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
+/* Tweaked the scenery file extentions to be "file.obj" (uncompressed)
+/* or "file.obz" (compressed.)
 /*
+ * Revision 1.1  1998/04/22 13:22:48  curt
+ * C++ - ifing the code a bit.
+ *
  * Revision 1.25  1998/04/18 04:14:07  curt
  * Moved fg_debug.c to it's own library.
  *