YASim method name clarification Airplane::setWeight
This commit is contained in:
parent
97a0511ce0
commit
6f1f850c11
3 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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") );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue