]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/KLN89/kln89_page_apt.cxx
turn a few #include paths from the "foo" form to <foo>
[flightgear.git] / src / Instrumentation / KLN89 / kln89_page_apt.cxx
index b370d54ad2b5a2afb910a178a4f879010af8039b..5ba94a3c5df121fefd077c99df13b8fd5620bfbf 100644 (file)
@@ -29,7 +29,7 @@
 #include <ATCDCL/commlist.hxx>
 #include <Main/globals.hxx>
 #include <Airports/runways.hxx>
-
+#include <Airports/simple.hxx>
 
 // This function is copied from Airports/runways.cxx
 // TODO - Make the original properly available and remove this instance!!!!
@@ -204,7 +204,7 @@ void KLN89AptPage::Update(double dt) {
                        // I guess we can make a heuristic guess as to fuel availability from the runway sizes
                        // For now assume that airports with asphalt or concrete runways will have at least 100L,
                        // and that runways over 4000ft will have JET.
-                       if(_aptRwys[0]->_surface_code <= 2) {
+                       if(_aptRwys[0]->surface() <= 2) {
                                if(_aptRwys[0]->lengthFt() >= 4000) {
                                        _kln89->DrawText("JET 100L", 2, 0, 1);
                                } else {
@@ -235,7 +235,7 @@ void KLN89AptPage::Update(double dt) {
                                _kln89->DrawText((_kln89->_altUnits == GPS_ALT_UNITS_FT ? "ft" : "m"), 2, 5, 2);
                                // Surface
                                // TODO - why not store these strings as an array?
-                               switch(_aptRwys[i]->_surface_code) {
+                               switch(_aptRwys[i]->surface()) {
                                case 1:
                                        // Asphalt - fall through
                                case 2:
@@ -283,7 +283,7 @@ void KLN89AptPage::Update(double dt) {
                                _kln89->DrawText((_kln89->_altUnits == GPS_ALT_UNITS_FT ? "ft" : "m"), 2, 5, 0);
                                // Surface
                                // TODO - why not store these strings as an array?
-                               switch(_aptRwys[i]->_surface_code) {
+                               switch(_aptRwys[i]->surface()) {
                                case 1:
                                        // Asphalt - fall through
                                case 2: