1
0
Fork 0

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
This commit is contained in:
frohlich 2009-03-07 15:02:20 +00:00 committed by Tim Moore
parent 30b05ee7a3
commit 82b54e7a25
4 changed files with 2 additions and 7 deletions

View file

@ -36,7 +36,6 @@
#include <simgear/math/polar3d.hxx>
#include <simgear/math/sg_geodesy.hxx>
#include <simgear/misc/sg_path.hxx>
#include <simgear/scene/model/location.hxx>
#include <simgear/scene/model/modellib.hxx>
#include <simgear/scene/util/SGNodeMasks.hxx>
#include <simgear/debug/logstream.hxx>

View file

@ -34,8 +34,6 @@ during descent to avoid occasionally landing short or long.
# include <config.h>
#endif
#include <simgear/scene/model/location.hxx>
#include <Airports/runways.hxx>
#include <Main/globals.hxx>
#include <Main/viewer.hxx>

View file

@ -29,7 +29,6 @@
#include <simgear/constants.h>
#include <simgear/debug/logstream.hxx>
#include <simgear/scene/model/location.hxx>
#include <simgear/scene/model/placement.hxx>
#include <Aircraft/aircraft.hxx>

View file

@ -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