1
0
Fork 0

Units bug.

This commit is contained in:
andy 2004-04-14 17:05:33 +00:00
parent bd3c57beee
commit 7b3c6c0ff7

View file

@ -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++) {