1
0
Fork 0

YASim method name clarification Airplane::setWeight

This commit is contained in:
Henning Stahlke 2017-02-02 10:03:33 +01:00
parent 97a0511ce0
commit 6f1f850c11
3 changed files with 4 additions and 3 deletions

View file

@ -272,7 +272,7 @@ float Airplane::getTankCapacity(int tank)
return ((Tank*)_tanks.get(tank))->cap;
}
void Airplane::setWeight(float weight)
void Airplane::setEmptyWeight(float weight)
{
_emptyWeight = weight;
}

View file

@ -16,6 +16,7 @@ class Launchbar;
class Thruster;
class Hitch;
/// The Airplane class ties together the different components
class Airplane : public Version {
public:
Airplane();
@ -32,7 +33,7 @@ public:
void getPilotAccel(float* out);
void setWeight(float weight);
void setEmptyWeight(float weight);
void setWing(Wing* wing);
void setTail(Wing* tail);

View file

@ -227,7 +227,7 @@ void FGFDM::startElement(const char* name, const XMLAttributes &atts)
char buf[64];
if(eq(name, "airplane")) {
_airplane.setWeight(attrf(a, "mass") * LBS2KG);
_airplane.setEmptyWeight(attrf(a, "mass") * LBS2KG);
if(a->hasAttribute("version")) {
_airplane.setVersion( a->getValue("version") );
}