]> git.mxchange.org Git - flightgear.git/commitdiff
Tweaks.
authorcurt <curt>
Fri, 21 Apr 2000 05:27:13 +0000 (05:27 +0000)
committercurt <curt>
Fri, 21 Apr 2000 05:27:13 +0000 (05:27 +0000)
Thanks
src/Scenery/tilemgr.cxx

diff --git a/Thanks b/Thanks
index b9ecee0845cd022c9f2ee47ebd18cf387b5a08b9..90ab11a3d4ea460a9d37f60ca80a18e680b54739 100644 (file)
--- a/Thanks
+++ b/Thanks
@@ -238,8 +238,7 @@ Robin Peel <robin@cpwd.com>
 
 Alex Perry <arp11@pacbell.net>
   Contributed code to more accurately model VSI, DG, Altitude.
-  I have a feeling there's been a few other things as well, but
-  my memory is failing me.
+  Contributed to the Install and Getting Started manual.
 
 
 Friedemann Reinhard <mpt218@faupt212.physik.uni-erlangen.de>
index 6c1c0d63bffedc4ecff4bc5c93b299d8950e1ad5..4fb3b8b232bd194c622b9cfa005f7629771c5c7c 100644 (file)
@@ -709,10 +709,11 @@ FGTileMgr::current_elev_ssg( const Point3D& abs_view_pos,
     sgdSetVec3(sgavp, abs_view_pos.x(), abs_view_pos.y(), abs_view_pos.z() );
     sgdSetVec3(sgvp, view_pos.x(), view_pos.y(), view_pos.z() );
 
-    // cout << "starting ssg_los, abs view pos = " << abs_view_pos[0] << " "
-    //      << abs_view_pos[1] << " " << abs_view_pos[2] << endl;
-    // cout << "starting ssg_los, view pos = " << view_pos[0] << " "
-    //      << view_pos[1] << " " << view_pos[2] << endl;
+    FG_LOG( FG_TERRAIN, FG_DEBUG, "starting ssg_los, abs view pos = "
+           << abs_view_pos[0] << " " << abs_view_pos[1] << " " 
+           << abs_view_pos[2] );
+    FG_LOG( FG_TERRAIN, FG_DEBUG, "starting ssg_los, view pos = "
+           << view_pos[0] << " " << view_pos[1] << " " << view_pos[2] );
     my_ssg_los( "", scene, m, sgvp, sgavp );
     
     double result = -9999;
@@ -726,6 +727,7 @@ FGTileMgr::current_elev_ssg( const Point3D& abs_view_pos,
        double lat_geod, alt, sea_level_r;
        fgGeocToGeod(pp.lat(), pp.radius(), &lat_geod, 
                     &alt, &sea_level_r);
+       FG_LOG( FG_TERRAIN, FG_DEBUG, "  alt (meters) = " << alt );
 
        // printf("alt = %.2f\n", alt);
        // exit since we found an intersection
@@ -950,7 +952,7 @@ int FGTileMgr::update( void ) {
 
     // find our current elevation (feed in the current bucket to save work)
     Point3D geod_pos = Point3D( f->get_Longitude(), f->get_Latitude(), 0.0);
-    Point3D tmp_abs_view_pos = fgGeodToCart(geod_pos);
+    // Point3D tmp_abs_view_pos = fgGeodToCart(geod_pos);
 
     // cout << "current elevation (old) == " 
     //      << current_elev( f->get_Longitude(), f->get_Latitude(),