]> git.mxchange.org Git - flightgear.git/blobdiff - src/Traffic/Schedule.hxx
Canvas: Add new element type map for geo mapping.
[flightgear.git] / src / Traffic / Schedule.hxx
index e41334e6b7fd9eca5c2a9bfd1e6873cc4d2206d5..a85d46df6be5aecbdfc7faff828f6a25b57e359e 100644 (file)
@@ -91,6 +91,8 @@ class FGAISchedule
 
   ~FGAISchedule(); //destructor
 
+    static bool validModelPath(const std::string& model);
+    
   bool update(time_t now, const SGVec3d& userCart);
   bool init();
 
@@ -128,7 +130,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;};