Erik Hofman: Irix build fixes.
This commit is contained in:
parent
a9b9e9d155
commit
ae46fe825f
3 changed files with 5 additions and 4 deletions
|
@ -150,7 +150,7 @@ void FGAILocalTraffic::Init() {
|
||||||
|
|
||||||
// Run the internal calculations
|
// Run the internal calculations
|
||||||
void FGAILocalTraffic::Update(double dt) {
|
void FGAILocalTraffic::Update(double dt) {
|
||||||
std::cout << "In FGAILocalTraffic::Update\n";
|
// cout << "In FGAILocalTraffic::Update\n";
|
||||||
// Hardwire flying traffic pattern for now - eventually also needs to be able to taxi to and from runway and GA parking area.
|
// Hardwire flying traffic pattern for now - eventually also needs to be able to taxi to and from runway and GA parking area.
|
||||||
FlyTrafficPattern(dt);
|
FlyTrafficPattern(dt);
|
||||||
Transform();
|
Transform();
|
||||||
|
|
|
@ -54,13 +54,14 @@ string FGPropertyManager::mkPropertyName(string name, bool lowercase) {
|
||||||
/* do this two pass to avoid problems with characters getting skipped
|
/* do this two pass to avoid problems with characters getting skipped
|
||||||
because the index changed */
|
because the index changed */
|
||||||
|
|
||||||
for(unsigned i=0;i<name.length();i++) {
|
unsigned i;
|
||||||
|
for(i=0;i<name.length();i++) {
|
||||||
if( lowercase && isupper(name[i]) )
|
if( lowercase && isupper(name[i]) )
|
||||||
name[i]=tolower(name[i]);
|
name[i]=tolower(name[i]);
|
||||||
else if( isspace(name[i]) )
|
else if( isspace(name[i]) )
|
||||||
name[i]='-';
|
name[i]='-';
|
||||||
}
|
}
|
||||||
for(unsigned i=0;i<name.length();i++) {
|
for(i=0;i<name.length();i++) {
|
||||||
if( name[i] == '/' )
|
if( name[i] == '/' )
|
||||||
name.erase(i,1);
|
name.erase(i,1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -197,7 +197,7 @@ bool FGTurbine::Load(FGConfigFile *Eng_cfg)
|
||||||
*Eng_cfg >> token >> MaxMilThrust;
|
*Eng_cfg >> token >> MaxMilThrust;
|
||||||
*Eng_cfg >> token >> MaxAugThrust;
|
*Eng_cfg >> token >> MaxAugThrust;
|
||||||
i=0;
|
i=0;
|
||||||
while( Eng_cfg->GetValue() != "/FG_TURBINE" && i < 10){
|
while( Eng_cfg->GetValue() != string("/FG_TURBINE") && i < 10){
|
||||||
ThrustTables.push_back( new FGCoefficient(FDMExec) );
|
ThrustTables.push_back( new FGCoefficient(FDMExec) );
|
||||||
ThrustTables.back()->Load(Eng_cfg);
|
ThrustTables.back()->Load(Eng_cfg);
|
||||||
i++;
|
i++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue