]> git.mxchange.org Git - flightgear.git/commitdiff
Looking into a problem with cur_view_params.abs_view_pos initialization.
authorcurt <curt>
Sat, 5 Dec 1998 14:19:51 +0000 (14:19 +0000)
committercurt <curt>
Sat, 5 Dec 1998 14:19:51 +0000 (14:19 +0000)
Main/GLUTmain.cxx
Main/fg_init.cxx

index 40d73ff4d34976111636eabcf36aaaae2f458b8e..84873ec3180bb44a309145cea2c85b9a81f601f8 100644 (file)
@@ -476,10 +476,10 @@ static void fgMainLoop( void ) {
     // Fix elevation.  I'm just sticking this here for now, it should
     // probably move eventually
 
-    /* printf("Before - ground = %.2f  runway = %.2f  alt = %.2f\n",
+    printf("Before - ground = %.2f  runway = %.2f  alt = %.2f\n",
           scenery.cur_elev,
-          FG_Runway_altitude * FEET_TO_METER,
-          FG_Altitude * FEET_TO_METER); */
+          f->get_Runway_altitude() * FEET_TO_METER,
+          f->get_Altitude() * FEET_TO_METER);
 
     if ( scenery.cur_elev > -9990 ) {
        if ( f->get_Altitude() * FEET_TO_METER < 
@@ -493,17 +493,17 @@ static void fgMainLoop( void ) {
                                      cur_flight_params, 
                                      scenery.cur_elev + alt_adjust_m );
 
-           FG_LOG( FG_ALL, FG_BULK
+           FG_LOG( FG_ALL, FG_DEBUG
                    "<*> resetting altitude to " 
                    << f->get_Altitude() * FEET_TO_METER << " meters" );
        }
        f->set_Runway_altitude( scenery.cur_elev * METER_TO_FEET );
     }
 
-    /* printf("Adjustment - ground = %.2f  runway = %.2f  alt = %.2f\n",
+    printf("Adjustment - ground = %.2f  runway = %.2f  alt = %.2f\n",
           scenery.cur_elev,
-          FG_Runway_altitude * FEET_TO_METER,
-          FG_Altitude * FEET_TO_METER); */
+          f->get_Runway_altitude() * FEET_TO_METER,
+          f->get_Altitude() * FEET_TO_METER);
 
     // update "time"
     fgTimeUpdate(f, t);
@@ -946,7 +946,7 @@ int main( int argc, char **argv ) {
     // fgInitDebug();
 
     // set default log levels
-    fglog().setLogLevels( FG_ALL, FG_INFO );
+    fglog().setLogLevels( FG_ALL, FG_DEBUG );
 
     FG_LOG( FG_GENERAL, FG_INFO, "Flight Gear:  Version " << VERSION << endl );
 
@@ -1014,6 +1014,9 @@ int main( int argc, char **argv ) {
 
 
 // $Log$
+// Revision 1.71  1998/12/05 14:19:51  curt
+// Looking into a problem with cur_view_params.abs_view_pos initialization.
+//
 // Revision 1.70  1998/12/03 01:17:14  curt
 // Converted fgFLIGHT to a class.
 //
index 67b54b3117616ecdf0e8fe7e3a798a05f102e54a..de3102da963ef4795f7bd10655b504559cf4dbc5 100644 (file)
@@ -267,6 +267,7 @@ int fgInitSubsystems( void )
     v->Init();
     FG_LOG( FG_GENERAL, FG_DEBUG, "After v->init()");
     v->UpdateViewMath(f);
+    FG_LOG( FG_GENERAL, FG_DEBUG, "  abs_view_pos = " << v->abs_view_pos );
     v->UpdateWorldToEye(f);
 
     // Build the solar system
@@ -369,6 +370,9 @@ int fgInitSubsystems( void )
 
 
 // $Log$
+// Revision 1.54  1998/12/05 14:19:53  curt
+// Looking into a problem with cur_view_params.abs_view_pos initialization.
+//
 // Revision 1.53  1998/12/03 04:25:05  curt
 // Working on fixing up new fgFLIGHT class.
 //