]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a bug in tile manager updating when switching from one view to the next.
authorcurt <curt>
Mon, 10 Feb 2003 15:34:18 +0000 (15:34 +0000)
committercurt <curt>
Mon, 10 Feb 2003 15:34:18 +0000 (15:34 +0000)
src/Scenery/tilemgr.cxx

index 5fc157452c8ecfb0757926accb6f7e7bbcfb9e3f..94400cffdbcd2b6f4fa9b5f19c30e6d4917ce2a3 100644 (file)
@@ -407,7 +407,7 @@ int FGTileMgr::update( FGLocation *location, double visibility_meters,
     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;