1
0
Fork 0

Maik JUSTUS: fix bug in previous commit

This commit is contained in:
mfranz 2007-01-13 16:04:28 +00:00
parent 7299699903
commit 747b1e11cc
16 changed files with 24 additions and 24 deletions

View file

@ -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);
}

View file

@ -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);

View file

@ -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;

View file

@ -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);

View file

@ -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

View file

@ -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"; }

View file

@ -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 <<endl;
}
return FGAIBase::init(true);
return FGAIBase::init(search_in_AI_path);
}
void FGAIMultiplayer::bind() {

View file

@ -32,7 +32,7 @@ public:
FGAIMultiplayer();
virtual ~FGAIMultiplayer();
virtual bool init();
virtual bool init(bool search_in_AI_path=false);
virtual void bind();
virtual void unbind();
virtual void update(double dt);

View file

@ -50,7 +50,7 @@ void FGAIShip::readFromScenario(SGPropertyNode* scFileNode) {
}
}
bool FGAIShip::init() {
bool FGAIShip::init(bool search_in_AI_path) {
hdg_lock = false;
rudder = 0.0;
@ -61,7 +61,7 @@ bool FGAIShip::init() {
speed_constant = 0.05;
hdg_constant = 0.01;
return FGAIBase::init();
return FGAIBase::init(search_in_AI_path);
}
void FGAIShip::bind() {

View file

@ -33,7 +33,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);

View file

@ -41,8 +41,8 @@ FGAIStatic::FGAIStatic() : FGAIBase(otStatic) {
FGAIStatic::~FGAIStatic() {
}
bool FGAIStatic::init() {
return FGAIBase::init(true);
bool FGAIStatic::init(bool search_in_AI_path) {
return FGAIBase::init(search_in_AI_path);
}
void FGAIStatic::bind() {

View file

@ -35,7 +35,7 @@ public:
FGAIStatic();
~FGAIStatic();
virtual bool init();
virtual bool init(bool search_in_AI_path=false);
virtual void bind();
virtual void unbind();
virtual void update(double dt);

View file

@ -74,8 +74,8 @@ void FGAIStorm::readFromScenario(SGPropertyNode* scFileNode) {
setStrengthNorm(scFileNode->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() {

View file

@ -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);

View file

@ -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() {

View file

@ -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);