1
0
Fork 0

Erik Hofman: Irix build fixes.

This commit is contained in:
curt 2002-10-24 14:02:19 +00:00
parent a9b9e9d155
commit ae46fe825f
3 changed files with 5 additions and 4 deletions

View file

@ -150,7 +150,7 @@ void FGAILocalTraffic::Init() {
// Run the internal calculations
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.
FlyTrafficPattern(dt);
Transform();

View file

@ -54,13 +54,14 @@ string FGPropertyManager::mkPropertyName(string name, bool lowercase) {
/* do this two pass to avoid problems with characters getting skipped
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]) )
name[i]=tolower(name[i]);
else if( isspace(name[i]) )
name[i]='-';
}
for(unsigned i=0;i<name.length();i++) {
for(i=0;i<name.length();i++) {
if( name[i] == '/' )
name.erase(i,1);
}

View file

@ -197,7 +197,7 @@ bool FGTurbine::Load(FGConfigFile *Eng_cfg)
*Eng_cfg >> token >> MaxMilThrust;
*Eng_cfg >> token >> MaxAugThrust;
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.back()->Load(Eng_cfg);
i++;