Fixed an oops.
This commit is contained in:
parent
b2fe0cc682
commit
f8c1e8dc98
2 changed files with 7 additions and 9 deletions
|
@ -233,12 +233,8 @@ bool FGPropulsion::Load(FGConfigFile* AC_cfg)
|
|||
Engines.push_back(new FGRocket(FDMExec, &Eng_cfg));
|
||||
} else if (engType == "FG_PISTON") {
|
||||
Engines.push_back(new FGPiston(FDMExec, &Eng_cfg));
|
||||
} else if (engType == "FG_TURBOJET") {
|
||||
Engines.push_back(new FGTurboJet(FDMExec, &Eng_cfg));
|
||||
} else if (engType == "FG_TURBOSHAFT") {
|
||||
Engines.push_back(new FGTurboShaft(FDMExec, &Eng_cfg));
|
||||
} else if (engType == "FG_TURBOPROP") {
|
||||
Engines.push_back(new FGTurboProp(FDMExec, &Eng_cfg));
|
||||
} else if (engType == "FG_TURBINE") {
|
||||
Engines.push_back(new FGTurbine(FDMExec, &Eng_cfg));
|
||||
} else {
|
||||
cerr << fgred << " Unrecognized engine type: " << underon << engType
|
||||
<< underoff << " found in config file." << fgdef << endl;
|
||||
|
@ -377,6 +373,8 @@ string FGPropulsion::GetPropulsionStrings(void)
|
|||
case FGEngine::etRocket:
|
||||
PropulsionStrings += (Engines[i]->GetName() + "_ChamberPress[" + buffer + "]");
|
||||
break;
|
||||
case FGEngine::etTurbine:
|
||||
break;
|
||||
default:
|
||||
PropulsionStrings += "INVALID ENGINE TYPE";
|
||||
break;
|
||||
|
@ -429,6 +427,8 @@ string FGPropulsion::GetPropulsionValues(void)
|
|||
case FGEngine::etRocket:
|
||||
PropulsionValues += (string(gcvt(((FGRocket*)Engines[i])->GetChamberPressure(), 10, buff)));
|
||||
break;
|
||||
case FGEngine::etTurbine:
|
||||
break;
|
||||
}
|
||||
|
||||
PropulsionValues += ", ";
|
||||
|
|
|
@ -56,9 +56,7 @@ INCLUDES
|
|||
|
||||
#include "FGRocket.h"
|
||||
#include "FGPiston.h"
|
||||
#include "FGTurboShaft.h"
|
||||
#include "FGTurboJet.h"
|
||||
#include "FGTurboProp.h"
|
||||
#include "FGTurbine.h"
|
||||
#include "FGTank.h"
|
||||
#include "FGPropeller.h"
|
||||
#include "FGNozzle.h"
|
||||
|
|
Loading…
Add table
Reference in a new issue