string enginePath = FDMExec->GetEnginePath();
float xLoc, yLoc, zLoc, Pitch, Yaw;
int Feed;
+ bool ThrottleAdded = false;
# ifndef macintosh
fullpath = enginePath + "/";
engType = Eng_cfg.GetValue();
FCS->AddThrottle();
+ ThrottleAdded = true;
if (engType == "FG_ROCKET") {
Engines.push_back(new FGRocket(FDMExec, &Eng_cfg));
cout << " Z = " << zLoc << endl;
cout << " Pitch = " << Pitch << endl;
cout << " Yaw = " << Yaw << endl;
- }
+ }
Engines[numEngines]->SetPlacement(xLoc, yLoc, zLoc, Pitch, Yaw);
numEngines++;
AC_cfg->GetNextConfigLine();
}
+ if (!ThrottleAdded) FCS->AddThrottle(); // need to have at least one throttle
+
return true;
}