Units bug.
This commit is contained in:
parent
bd3c57beee
commit
7b3c6c0ff7
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ void FGFDM::iterate(float dt)
|
|||
t->setFuelState(!fgGetBool(buf));
|
||||
|
||||
sprintf(buf, "/engines/engine[%d]/fuel-consumed-lbs", i);
|
||||
double consumed = fgGetDouble(buf) + dt * t->getFuelFlow();
|
||||
double consumed = fgGetDouble(buf) + dt * KG2LBS * t->getFuelFlow();
|
||||
fgSetDouble(buf, consumed);
|
||||
}
|
||||
for(int i=0; i<_airplane.numTanks(); i++) {
|
||||
|
|
Loading…
Reference in a new issue