]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/HUD/HUD_runway.cxx
Re-Name FGViewer to flightgear::View
[flightgear.git] / src / Instrumentation / HUD / HUD_runway.cxx
index f44a6d3a588e8eaaef82da263cade86f73f2401a..6fae692d10eb6ff86c9a1ff52632db57057b85f1 100644 (file)
@@ -28,6 +28,7 @@
 #include <simgear/scene/util/project.hxx>
 
 #include <Main/globals.hxx>
+#include <Main/fg_props.hxx>
 #include <Scenery/scenery.hxx>
 #include <Aircraft/controls.hxx>
 #include <FDM/flight.hxx>
 #include <Environment/environment_mgr.hxx>
 #include <Viewer/viewer.hxx>
 #include <Viewer/viewmgr.hxx>
-#include <ATCDCL/ATCutils.hxx>
+#include <Airports/airport.hxx>
 
 #include "HUD.hxx"
-
+#include "HUD_private.hxx"
 
 HUD::Runway::Runway(HUD *hud, const SGPropertyNode *node, float x, float y) :
     Item(hud, node, x, y),
@@ -86,7 +87,7 @@ void HUD::Runway::draw()
 //    double po = curr_view->getPitchOffset_deg();
 //    double ho = curr_view->getHeadingOffset_deg();
 
-    FGViewer* cockpitView = globals->get_viewmgr()->get_view(0);
+    flightgear::View* cockpitView = globals->get_viewmgr()->get_view(0);
     
     double yaw = -(cockpitView->getHeadingOffset_deg() - _default_heading) * SG_DEGREES_TO_RADIANS;
     double pitch = (cockpitView->getPitchOffset_deg() - _default_pitch) * SG_DEGREES_TO_RADIANS;