"Curtis L. Olson" <[EMAIL PROTECTED]> said:

> Ground elevation problems ... 
> 
> I'm starting at KHAF (because it illustrates the problem pretty well.)
> I'm using the A4, but the problem is with any aircraft.
> 

Below is the fix for that bug.  It's just a one line change.  My apologies if
this mailer screws up the line feeds!

Also note that at some point whoever was working on optimizing the
FGTileMgr::Update also removed the "bucket" field from the FGLocation class. 
This results in more calls to the tile scheduler.  Not a big deal, but some
wasted cpu effort that could matter in certain situations.

Best,

Jim


Index: Scenery/tilemgr.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Scenery/tilemgr.cxx,v
retrieving revision 1.12
diff -u -r1.12 tilemgr.cxx
--- Scenery/tilemgr.cxx 10 Dec 2002 20:50:52 -0000      1.12
+++ Scenery/tilemgr.cxx 10 Feb 2003 12:47:08 -0000
@@ -407,7 +407,7 @@
     if ( longitude != last_longitude || latitude != last_latitude ) {
         // update current elevation...
         if ( updateCurrentElevAtPos( abs_pos_vector,
-                                     globals->get_scenery()->get_center() ) )
+                                    globals->get_scenery()->get_next_center() ) )
         {
             last_longitude = longitude;
             last_latitude = latitude;


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to