]> git.mxchange.org Git - flightgear.git/commitdiff
Minor tweaks.
authorcurt <curt>
Sun, 1 Feb 1998 03:39:53 +0000 (03:39 +0000)
committercurt <curt>
Sun, 1 Feb 1998 03:39:53 +0000 (03:39 +0000)
Main/fg_init.c
Scenery/obj.c
Scenery/tilecache.c
Scenery/tilemgr.c
Simulator/Makefile
Time/fg_time.c

index 518ffd60d8cffcead9e889dc8d329533f736a1c8..12859b569a31392ab09470823496d966787be92b 100644 (file)
@@ -109,12 +109,30 @@ void fgInitSubsystems( void ) {
     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; */
@@ -296,9 +314,12 @@ void fgInitSubsystems( void ) {
 
 
 /* $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.
index 6ebaf113bf579e0b712f57348ae8e2365540140a..90a8b7968a25c95389a0b35a06670cd6591af238 100644 (file)
@@ -77,8 +77,7 @@ GLint fgObjLoad(char *path, struct fgCartesianPoint *ref, double *radius) {
 
     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);
@@ -355,9 +354,12 @@ GLint fgObjLoad(char *path, struct fgCartesianPoint *ref, double *radius) {
 
 
 /* $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.
  *
index c30d36438b937459b3df849eda4a1092232aaf5a..fa6e8ea15fd6c75e28bfa411a6a2ddda5a4f644c 100644 (file)
@@ -118,7 +118,9 @@ void fgTileCacheEntryFree( int index ) {
              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 );
+    }
 }
 
 
@@ -192,9 +194,12 @@ int fgTileCacheNextAvail( void ) {
 
 
 /* $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.
  *
index e116bb181b8b615704eab9813f60f43ae74854d1..b510ea6b6638bbcc05996e1b84f79a0efd5ec204 100644 (file)
@@ -198,20 +198,25 @@ void fgTileMgrRender( void ) {
        /* 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.
  *
index 0067d2ea98338718e2503c3b02f90eddb952371f..a5333c7afb6a18b5f260522b0871c434b75210d6 100644 (file)
@@ -74,11 +74,13 @@ source-zip: clean
 
 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 ..
@@ -102,6 +104,9 @@ bin-zip:
 
 #---------------------------------------------------------------------------
 # $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.
index d6a8d3560a3a0c7b550865371e4ef2e6bc492e21..083f96315439c6055ebbfea95350fdf1ee667b33 100644 (file)
@@ -190,10 +190,18 @@ double sidereal_course(struct tm *gmt, time_t now, double lng) {
     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(&current);
@@ -302,10 +310,13 @@ void fgTimeUpdate(struct fgFLIGHT *f, struct fgTIME *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.
  *