]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIBase.cxx
Interpret environment variables and hostname on Windows
[flightgear.git] / src / AIModel / AIBase.cxx
index 8c5532db1131be92a5c3eb0033b063473f03f844..d143296a18f04b8f931701721924fb4bf5634fd8 100644 (file)
@@ -81,6 +81,8 @@ FGAIBase::FGAIBase(object_type ot) :
     delete_me = false;
     _impact_reported = false;
     _collision_reported = false;
+       _expiry_reported = false;
+
     _subID = 0;
 
     _x_offset = 0;
@@ -226,7 +228,7 @@ void FGAIBase::initModel(osg::Node *node)
 {
     if (model.valid()) {
 
-        fgSetString("/ai/models/model-added", props->getPath());
+        fgSetString("/ai/models/model-added", props->getPath().c_str());
 
     } else if (!model_path.empty()) {
         SG_LOG(SG_INPUT, SG_WARN, "AIBase: Could not load model " << model_path);
@@ -579,6 +581,10 @@ bool FGAIBase::_getCollisionData() {
     return _collision_reported;
 }
 
+bool FGAIBase::_getExpiryData() {
+    return _expiry_reported;
+}
+
 bool FGAIBase::_getImpactData() {
     return _impact_reported;
 }