**************************************************************************/
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#ifdef HAVE_WINDOWS_H
# include <windows.h>
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);
/* $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.
*
#define _OBJ_H
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#ifdef HAVE_WINDOWS_H
# include <windows.h>
/* $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.
*
**************************************************************************/
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#ifdef HAVE_WINDOWS_H
# include <windows.h>
/* $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.
*
**************************************************************************/
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#ifdef HAVE_WINDOWS_H
# include <windows.h>
/* 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,
/* $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.
*
#endif
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#ifdef HAVE_WINDOWS_H
# include <windows.h>
/* $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.
*
**************************************************************************/
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#ifdef HAVE_WINDOWS_H
# include <windows.h>
/* $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.
*