]> git.mxchange.org Git - flightgear.git/blobdiff - src/Traffic/Schedule.hxx
NavDisplay: fix update lag when switching range or centre.
[flightgear.git] / src / Traffic / Schedule.hxx
index 27385ed0d3e0a515a5710f17cb983d7f26e174c3..e3c8d84512c3efbb75dca1af1c0a6b1c2724bbc8 100644 (file)
@@ -63,6 +63,7 @@ class FGAISchedule
   bool valid;
 
   void scheduleFlights(time_t now);
+  int groundTimeFromRadius();
   
   /**
    * Transition this schedule from distant mode to AI mode;
@@ -127,7 +128,7 @@ class FGAISchedule
   // decending order sorting, but still need to test that.
   bool operator< (const FGAISchedule &other) const;
     void taint() { valid = false; };
-    int getLastUsed() { return (int) valid;};
+    int getLastUsed() { return lastRun; };
     void setLastUsed(unsigned int val) {lastRun = val; }; 
   //void * getAiRef                 () { return AIManagerRef; };
   //FGAISchedule* getAddress        () { return this;};