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); //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 void readFromScenario(SGPropertyNode* scFileNode);
virtual bool init(); virtual bool init(bool search_in_AI_path=false);
virtual void bind(); virtual void bind();
virtual void unbind(); virtual void unbind();
virtual void update(double dt); virtual void update(double dt);

View file

@ -59,8 +59,8 @@ void FGAIBallistic::readFromScenario(SGPropertyNode* scFileNode) {
setStabilisation(scFileNode->getBoolValue("aero_stabilized", false)); setStabilisation(scFileNode->getBoolValue("aero_stabilized", false));
} }
bool FGAIBallistic::init() { bool FGAIBallistic::init(bool search_in_AI_path) {
FGAIBase::init(); FGAIBase::init(search_in_AI_path);
hdg = azimuth; hdg = azimuth;
pitch = elevation; pitch = elevation;
roll = rotation; roll = rotation;

View file

@ -33,7 +33,7 @@ public:
void readFromScenario(SGPropertyNode* scFileNode); void readFromScenario(SGPropertyNode* scFileNode);
bool init(); bool init(bool search_in_AI_path=false);
virtual void bind(); virtual void bind();
virtual void unbind(); virtual void unbind();
void update(double dt); void update(double dt);

View file

@ -309,8 +309,8 @@ void FGAICarrier::update(double dt) {
source = 0; source = 0;
} //end update } //end update
bool FGAICarrier::init() { bool FGAICarrier::init(bool search_in_AI_path) {
if (!FGAIShip::init()) if (!FGAIShip::init(search_in_AI_path))
return false; return false;
// process the 3d model here // process the 3d model here

View file

@ -102,7 +102,7 @@ public:
void ReturnToBox(); void ReturnToBox();
bool OutsideBox(); bool OutsideBox();
bool init(); bool init(bool search_in_AI_path=false);
virtual const char* getTypeString(void) const { return "carrier"; } virtual const char* getTypeString(void) const { return "carrier"; }

View file

@ -43,7 +43,7 @@ FGAIMultiplayer::FGAIMultiplayer() : FGAIBase(otMultiplayer) {
FGAIMultiplayer::~FGAIMultiplayer() { FGAIMultiplayer::~FGAIMultiplayer() {
} }
bool FGAIMultiplayer::init() { bool FGAIMultiplayer::init(bool search_in_AI_path) {
//refuel_node = fgGetNode("systems/refuel/contact", true); //refuel_node = fgGetNode("systems/refuel/contact", true);
isTanker = false; // do this until this property is isTanker = false; // do this until this property is
// passed over the net // passed over the net
@ -57,7 +57,7 @@ bool FGAIMultiplayer::init() {
isTanker = true; isTanker = true;
// cout << "isTanker " << isTanker << " " << mCallSign <<endl; // cout << "isTanker " << isTanker << " " << mCallSign <<endl;
} }
return FGAIBase::init(true); return FGAIBase::init(search_in_AI_path);
} }
void FGAIMultiplayer::bind() { void FGAIMultiplayer::bind() {

View file

@ -32,7 +32,7 @@ public:
FGAIMultiplayer(); FGAIMultiplayer();
virtual ~FGAIMultiplayer(); virtual ~FGAIMultiplayer();
virtual bool init(); virtual bool init(bool search_in_AI_path=false);
virtual void bind(); virtual void bind();
virtual void unbind(); virtual void unbind();
virtual void update(double dt); 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; hdg_lock = false;
rudder = 0.0; rudder = 0.0;
@ -61,7 +61,7 @@ bool FGAIShip::init() {
speed_constant = 0.05; speed_constant = 0.05;
hdg_constant = 0.01; hdg_constant = 0.01;
return FGAIBase::init(); return FGAIBase::init(search_in_AI_path);
} }
void FGAIShip::bind() { void FGAIShip::bind() {

View file

@ -33,7 +33,7 @@ public:
virtual void readFromScenario(SGPropertyNode* scFileNode); virtual void readFromScenario(SGPropertyNode* scFileNode);
virtual bool init(); virtual bool init(bool search_in_AI_path=false);
virtual void bind(); virtual void bind();
virtual void unbind(); virtual void unbind();
virtual void update(double dt); virtual void update(double dt);

View file

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

View file

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

View file

@ -74,8 +74,8 @@ void FGAIStorm::readFromScenario(SGPropertyNode* scFileNode) {
setStrengthNorm(scFileNode->getDoubleValue("strength-norm", 1.0)); setStrengthNorm(scFileNode->getDoubleValue("strength-norm", 1.0));
} }
bool FGAIStorm::init() { bool FGAIStorm::init(bool search_in_AI_path) {
return FGAIBase::init(); return FGAIBase::init(search_in_AI_path);
} }
void FGAIStorm::bind() { void FGAIStorm::bind() {

View file

@ -37,7 +37,7 @@ public:
void readFromScenario(SGPropertyNode* scFileNode); void readFromScenario(SGPropertyNode* scFileNode);
virtual bool init(); virtual bool init(bool search_in_AI_path=false);
virtual void bind(); virtual void bind();
virtual void unbind(); virtual void unbind();
virtual void update(double dt); virtual void update(double dt);

View file

@ -54,10 +54,10 @@ void FGAIThermal::readFromScenario(SGPropertyNode* scFileNode) {
setHeight(scFileNode->getDoubleValue("height-msl", 5000.0)); 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); factor = 8.0 * max_strength / (diameter * diameter * diameter);
setAltitude( height ); setAltitude( height );
return FGAIBase::init(); return FGAIBase::init(search_in_AI_path);
} }
void FGAIThermal::bind() { void FGAIThermal::bind() {

View file

@ -37,7 +37,7 @@ public:
void readFromScenario(SGPropertyNode* scFileNode); void readFromScenario(SGPropertyNode* scFileNode);
virtual bool init(); virtual bool init(bool search_in_AI_path=false);
virtual void bind(); virtual void bind();
virtual void unbind(); virtual void unbind();
virtual void update(double dt); virtual void update(double dt);