diff --git a/src/AIModel/AIAircraft.cxx b/src/AIModel/AIAircraft.cxx index b56a7893a..b7ad31f0f 100644 --- a/src/AIModel/AIAircraft.cxx +++ b/src/AIModel/AIAircraft.cxx @@ -118,9 +118,9 @@ void FGAIAircraft::readFromScenario(SGPropertyNode* scFileNode) { } -bool FGAIAircraft::init() { +bool FGAIAircraft::init(bool search_in_AI_path) { //refuel_node = fgGetNode("systems/refuel/contact", true); - return FGAIBase::init(true); + return FGAIBase::init(search_in_AI_path); } diff --git a/src/AIModel/AIAircraft.hxx b/src/AIModel/AIAircraft.hxx index a848346cf..d1b331d71 100644 --- a/src/AIModel/AIAircraft.hxx +++ b/src/AIModel/AIAircraft.hxx @@ -62,7 +62,7 @@ public: virtual void readFromScenario(SGPropertyNode* scFileNode); - virtual bool init(); + virtual bool init(bool search_in_AI_path=false); virtual void bind(); virtual void unbind(); virtual void update(double dt); diff --git a/src/AIModel/AIBallistic.cxx b/src/AIModel/AIBallistic.cxx index c7a5ab72c..1dd2a2f4f 100644 --- a/src/AIModel/AIBallistic.cxx +++ b/src/AIModel/AIBallistic.cxx @@ -59,8 +59,8 @@ void FGAIBallistic::readFromScenario(SGPropertyNode* scFileNode) { setStabilisation(scFileNode->getBoolValue("aero_stabilized", false)); } -bool FGAIBallistic::init() { - FGAIBase::init(); +bool FGAIBallistic::init(bool search_in_AI_path) { + FGAIBase::init(search_in_AI_path); hdg = azimuth; pitch = elevation; roll = rotation; diff --git a/src/AIModel/AIBallistic.hxx b/src/AIModel/AIBallistic.hxx index 6b5441304..0137ac1f2 100644 --- a/src/AIModel/AIBallistic.hxx +++ b/src/AIModel/AIBallistic.hxx @@ -33,7 +33,7 @@ public: void readFromScenario(SGPropertyNode* scFileNode); - bool init(); + bool init(bool search_in_AI_path=false); virtual void bind(); virtual void unbind(); void update(double dt); diff --git a/src/AIModel/AICarrier.cxx b/src/AIModel/AICarrier.cxx index 0ec684609..3a83c13fe 100644 --- a/src/AIModel/AICarrier.cxx +++ b/src/AIModel/AICarrier.cxx @@ -309,8 +309,8 @@ void FGAICarrier::update(double dt) { source = 0; } //end update -bool FGAICarrier::init() { - if (!FGAIShip::init()) +bool FGAICarrier::init(bool search_in_AI_path) { + if (!FGAIShip::init(search_in_AI_path)) return false; // process the 3d model here diff --git a/src/AIModel/AICarrier.hxx b/src/AIModel/AICarrier.hxx index d76e1ed0e..33c674055 100644 --- a/src/AIModel/AICarrier.hxx +++ b/src/AIModel/AICarrier.hxx @@ -102,7 +102,7 @@ public: void ReturnToBox(); bool OutsideBox(); - bool init(); + bool init(bool search_in_AI_path=false); virtual const char* getTypeString(void) const { return "carrier"; } diff --git a/src/AIModel/AIMultiplayer.cxx b/src/AIModel/AIMultiplayer.cxx index 9888d58ef..8e59b929f 100755 --- a/src/AIModel/AIMultiplayer.cxx +++ b/src/AIModel/AIMultiplayer.cxx @@ -43,7 +43,7 @@ FGAIMultiplayer::FGAIMultiplayer() : FGAIBase(otMultiplayer) { FGAIMultiplayer::~FGAIMultiplayer() { } -bool FGAIMultiplayer::init() { +bool FGAIMultiplayer::init(bool search_in_AI_path) { //refuel_node = fgGetNode("systems/refuel/contact", true); isTanker = false; // do this until this property is // passed over the net @@ -57,7 +57,7 @@ bool FGAIMultiplayer::init() { isTanker = true; // cout << "isTanker " << isTanker << " " << mCallSign <getDoubleValue("strength-norm", 1.0)); } -bool FGAIStorm::init() { - return FGAIBase::init(); +bool FGAIStorm::init(bool search_in_AI_path) { + return FGAIBase::init(search_in_AI_path); } void FGAIStorm::bind() { diff --git a/src/AIModel/AIStorm.hxx b/src/AIModel/AIStorm.hxx index 8d2df2f09..3a0153fc5 100644 --- a/src/AIModel/AIStorm.hxx +++ b/src/AIModel/AIStorm.hxx @@ -37,7 +37,7 @@ public: void readFromScenario(SGPropertyNode* scFileNode); - virtual bool init(); + virtual bool init(bool search_in_AI_path=false); virtual void bind(); virtual void unbind(); virtual void update(double dt); diff --git a/src/AIModel/AIThermal.cxx b/src/AIModel/AIThermal.cxx index 0253a0f8b..d01421c73 100644 --- a/src/AIModel/AIThermal.cxx +++ b/src/AIModel/AIThermal.cxx @@ -54,10 +54,10 @@ void FGAIThermal::readFromScenario(SGPropertyNode* scFileNode) { setHeight(scFileNode->getDoubleValue("height-msl", 5000.0)); } -bool FGAIThermal::init() { +bool FGAIThermal::init(bool search_in_AI_path) { factor = 8.0 * max_strength / (diameter * diameter * diameter); setAltitude( height ); - return FGAIBase::init(); + return FGAIBase::init(search_in_AI_path); } void FGAIThermal::bind() { diff --git a/src/AIModel/AIThermal.hxx b/src/AIModel/AIThermal.hxx index 03fcd3213..38a50bea9 100644 --- a/src/AIModel/AIThermal.hxx +++ b/src/AIModel/AIThermal.hxx @@ -37,7 +37,7 @@ public: void readFromScenario(SGPropertyNode* scFileNode); - virtual bool init(); + virtual bool init(bool search_in_AI_path=false); virtual void bind(); virtual void unbind(); virtual void update(double dt);