James TURNER: make the index of the current waypoint available
This commit is contained in:
parent
53f7743678
commit
f4ec02a592
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user