]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/waypoint.cxx
Convert runway parser and all internals to metric units and 2 runway ends.
[flightgear.git] / src / Navaids / waypoint.cxx
index dd1ae7a96c4afd14838eb97d2a93b4bcd899fdcc..aaeedd53c84dbcfc43f38fef9fdd5d96672d09c3 100644 (file)
@@ -24,9 +24,8 @@
 #include "waypoint.hxx"
 
 #include <simgear/structure/exception.hxx>
-#include <simgear/route/waypoint.hxx>
 
-#include <Airports/simple.hxx>
+#include <Airports/airport.hxx>
 #include <Airports/runways.hxx>
 
 using std::string;
@@ -44,13 +43,6 @@ BasicWaypt::BasicWaypt(const SGGeod& aPos, const string& aIdent, RouteBase* aOwn
   }
 }
 
-BasicWaypt::BasicWaypt(const SGWayPoint& aWP, RouteBase* aOwner) :
-  Waypt(aOwner),
-  _pos(aWP.get_target()),
-  _ident(aWP.get_id())
-{
-}
-
 BasicWaypt::BasicWaypt(RouteBase* aOwner) :
   Waypt(aOwner)
 {
@@ -86,7 +78,7 @@ NavaidWaypoint::NavaidWaypoint(FGPositioned* aPos, RouteBase* aOwner) :
   _navaid(aPos)
 {
   if (aPos->type() == FGPositioned::RUNWAY) {
-      SG_LOG(SG_GENERAL, SG_WARN, "sure you don't want to be building a runway waypt here?");
+      SG_LOG(SG_NAVAID, SG_WARN, "sure you don't want to be building a runway waypt here?");
   }
 }