]> git.mxchange.org Git - simgear.git/commitdiff
James TURNER: make the index of the current waypoint available
authormfranz <mfranz>
Thu, 18 Dec 2008 22:51:58 +0000 (22:51 +0000)
committermfranz <mfranz>
Thu, 18 Dec 2008 22:51:58 +0000 (22:51 +0000)
simgear/route/route.hxx

index 0b3701f1bef66ae2eccef6e5f66507663c283d64..75fac7f048739324612bafe53e5e4396cbd3ea86 100644 (file)
@@ -113,6 +113,10 @@ public:
        }
     }
 
+    inline int current_index() const {
+        return current_wp;
+    }
+
     /** Increment the current waypoint pointer. */
     inline void increment_current() {
        if ( current_wp < (int)route.size() - 1 ) {