FG_Runway_altitude = 3234.5;
FG_Runway_heading = 102.0 * DEG_TO_RAD;
- /* Initial Position at (P13) GLOBE airport */
+ /* Initial Position at (P13) Globe, AZ */
FG_Longitude = ( -398391.28 / 3600.0 ) * DEG_TO_RAD;
FG_Latitude = ( 120070.41 / 3600.0 ) * DEG_TO_RAD;
FG_Runway_altitude = (3234.5 + 300);
FG_Altitude = FG_Runway_altitude + 3.758099;
+ /* Initial Position at (E81) Superior, AZ */
+ /* FG_Longitude = ( -111.1270650 ) * DEG_TO_RAD; */
+ /* FG_Latitude = ( 33.2778339 ) * DEG_TO_RAD; */
+ /* FG_Runway_altitude = (2646 + 500); */
+ /* FG_Altitude = FG_Runway_altitude + 3.758099; */
+
+ /* Initial Position at (TUS) Tucson, AZ */
+ /* FG_Longitude = ( -110.9412597 ) * DEG_TO_RAD; */
+ /* FG_Latitude = ( 32.1162439 ) * DEG_TO_RAD; */
+ /* FG_Runway_altitude = (2641 + 0); */
+ /* FG_Altitude = FG_Runway_altitude + 3.758099; */
+
+ /* Initial Position at near Anchoraze, AK */
+ /* FG_Longitude = ( -150.00 ) * DEG_TO_RAD; */
+ /* FG_Latitude = ( 61.17 ) * DEG_TO_RAD; */
+ /* FG_Runway_altitude = (2641 + 07777); */
+ /* FG_Altitude = FG_Runway_altitude + 3.758099; */
+
/* Initial Position at (SEZ) SEDONA airport */
/* FG_Longitude = (-111.7884614 + 0.02) * DEG_TO_RAD; */
/* FG_Latitude = ( 34.8486289 - 0.04) * DEG_TO_RAD; */
/* $Log$
-/* Revision 1.36 1998/01/31 00:43:13 curt
-/* Added MetroWorks patches from Carmen Volpe.
+/* Revision 1.37 1998/02/01 03:39:54 curt
+/* Minor tweaks.
/*
+ * Revision 1.36 1998/01/31 00:43:13 curt
+ * Added MetroWorks patches from Carmen Volpe.
+ *
* Revision 1.35 1998/01/27 00:47:57 curt
* Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
* system and commandline/config file processing code.
if ( (f = fopen(path, "r")) == NULL ) {
fgPrintf(FG_TERRAIN, FG_ALERT, "Cannot open file: %s\n", path);
- /* exit(-1); */
- return(0);
+ return(-1);
}
tile = xglGenLists(1);
/* $Log$
-/* Revision 1.21 1998/01/31 00:43:25 curt
-/* Added MetroWorks patches from Carmen Volpe.
+/* Revision 1.22 1998/02/01 03:39:54 curt
+/* Minor tweaks.
/*
+ * Revision 1.21 1998/01/31 00:43:25 curt
+ * Added MetroWorks patches from Carmen Volpe.
+ *
* Revision 1.20 1998/01/29 00:51:39 curt
* First pass at tile cache, dynamic tile loading and tile unloading now works.
*
tile_cache[index].tile_bucket.y );
/* Load the appropriate area and get the display list pointer */
- xglDeleteLists( tile_cache[index].display_list, 1 );
+ if ( tile_cache[index].display_list >= 0 ) {
+ xglDeleteLists( tile_cache[index].display_list, 1 );
+ }
}
/* $Log$
-/* Revision 1.6 1998/01/31 00:43:26 curt
-/* Added MetroWorks patches from Carmen Volpe.
+/* Revision 1.7 1998/02/01 03:39:55 curt
+/* Minor tweaks.
/*
+ * Revision 1.6 1998/01/31 00:43:26 curt
+ * Added MetroWorks patches from Carmen Volpe.
+ *
* Revision 1.5 1998/01/29 00:51:39 curt
* First pass at tile cache, dynamic tile loading and tile unloading now works.
*
/* fgPrintf( FG_TERRAIN, FG_DEBUG, "Index = %d\n", index); */
fgTileCacheEntryInfo(index, &display_list, &local_ref );
- xglPushMatrix();
- xglTranslatef(local_ref.x - scenery.center.x,
- local_ref.y - scenery.center.y,
- local_ref.z - scenery.center.z);
- xglCallList(display_list);
- xglPopMatrix();
+ if ( display_list >= 0 ) {
+ xglPushMatrix();
+ xglTranslatef(local_ref.x - scenery.center.x,
+ local_ref.y - scenery.center.y,
+ local_ref.z - scenery.center.z);
+ xglCallList(display_list);
+ xglPopMatrix();
+ }
}
}
/* $Log$
-/* Revision 1.11 1998/01/31 00:43:27 curt
-/* Added MetroWorks patches from Carmen Volpe.
+/* Revision 1.12 1998/02/01 03:39:55 curt
+/* Minor tweaks.
/*
+ * Revision 1.11 1998/01/31 00:43:27 curt
+ * Added MetroWorks patches from Carmen Volpe.
+ *
* Revision 1.10 1998/01/29 00:51:40 curt
* First pass at tile cache, dynamic tile loading and tile unloading now works.
*
scenery-tar:
(cd ../..; \
- $(TAR) cvzf scenery-$(FG_VERSION).tar.gz FlightGear/Scenery)
+ $(TAR) cvzf scenery-$(FG_VERSION).tar.gz FlightGear/Scenery/*.dat \
+ FlightGear/Scenery/*/*/*.obj)
scenery-zip:
(cd ../..; \
- zip -r scenery-$(FG_VERSION).zip FlightGear/Scenery)
+ zip -r scenery-$(FG_VERSION).zip FlightGear/Scenery/*.dat \
+ FlightGear/Scenery/*/*/*.obj)
bin-tar: all
cp Main/fg-$(FG_VERSION) README Thanks runfg ..
#---------------------------------------------------------------------------
# $Log$
+# Revision 1.40 1998/02/01 03:39:53 curt
+# Minor tweaks.
+#
# Revision 1.39 1998/01/27 00:47:41 curt
# Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
# system and commandline/config file processing code.
start = mktime(&mt);
/* printf("start1 = %ld\n", start);
- fgPrintf( FG_EVENT, FG_DEBUG, "start2 = %s", ctime(&start));
- fgPrintf( FG_EVENT, FG_DEBUG, "start3 = %ld\n", start); */
+ fgPrintf( FG_EVENT, FG_DEBUG, "start2 = %s", ctime(&start));
+ fgPrintf( FG_EVENT, FG_DEBUG, "start3 = %ld\n", start); */
+#ifndef __CYGWIN32__
daylight = mt.tm_isdst;
+#else
+ /* Yargs ... I'm just hardcoding this arbitrarily so it doesn't
+ * jump around */
+ daylight = 0;
+ fgPrintf( FG_EVENT, FG_WARN,
+ "no daylight savings info ... being hardcoded to %d\n", daylight);
+#endif
#ifdef USE_FTIME
ftime(¤t);
/* $Log$
-/* Revision 1.31 1998/01/27 00:48:06 curt
-/* Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
-/* system and commandline/config file processing code.
+/* Revision 1.32 1998/02/01 03:39:56 curt
+/* Minor tweaks.
/*
+ * Revision 1.31 1998/01/27 00:48:06 curt
+ * Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
+ * system and commandline/config file processing code.
+ *
* Revision 1.30 1998/01/21 21:11:35 curt
* Misc. tweaks.
*