James TURNER: make the index of the current waypoint available

This commit is contained in:
mfranz 2008-12-18 22:51:58 +00:00
parent 53f7743678
commit f4ec02a592

View 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 ) {