From: frohlich Date: Sat, 7 Mar 2009 15:02:20 +0000 (+0000) Subject: Avoid SGLocation usage. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=82b54e7a257d322bc00659fc4157a61e9045334d;p=flightgear.git Avoid SGLocation usage. Modified Files: configure.ac src/AIModel/AIBase.cxx src/ATCDCL/AILocalTraffic.cxx src/FDM/Makefile.am src/FDM/flight.hxx src/FDM/LaRCsim/LaRCsim.cxx src/Main/Makefile.am src/Main/fg_init.cxx src/Main/main.cxx src/Main/viewer.cxx src/Main/viewer.hxx src/Scenery/tilemgr.cxx src/Scenery/tilemgr.hxx --- diff --git a/src/AIModel/AIBase.cxx b/src/AIModel/AIBase.cxx index 74ce8fa89..5988ac8f6 100644 --- a/src/AIModel/AIBase.cxx +++ b/src/AIModel/AIBase.cxx @@ -36,7 +36,6 @@ #include #include #include -#include #include #include #include diff --git a/src/ATCDCL/AILocalTraffic.cxx b/src/ATCDCL/AILocalTraffic.cxx index e99b60936..091709e61 100644 --- a/src/ATCDCL/AILocalTraffic.cxx +++ b/src/ATCDCL/AILocalTraffic.cxx @@ -34,8 +34,6 @@ during descent to avoid occasionally landing short or long. # include #endif -#include - #include #include
#include
diff --git a/src/FDM/LaRCsim/LaRCsim.cxx b/src/FDM/LaRCsim/LaRCsim.cxx index 719d90daa..611849dff 100644 --- a/src/FDM/LaRCsim/LaRCsim.cxx +++ b/src/FDM/LaRCsim/LaRCsim.cxx @@ -29,7 +29,6 @@ #include #include -#include #include #include diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 6ea60f1a9..e5be03776 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -505,9 +505,8 @@ static void fgMainLoop( void ) { globals->get_tile_mgr()->prep_ssg_nodes( visibility_meters ); // update tile manager for view... - SGLocation *view_location = globals->get_current_view()->getSGLocation(); - SGGeod geodViewPos = SGGeod::fromDeg(view_location->getLongitude_deg(), - view_location->getLatitude_deg()); + SGVec3d viewPos = globals->get_current_view()->get_view_pos(); + SGGeod geodViewPos = SGGeod::fromCart(viewPos); globals->get_tile_mgr()->update(geodViewPos, visibility_meters); // run Nasal's settimer() loops right before the view manager