From e977fdff52b2af6b0b968ef43c6a5b47542afc84 Mon Sep 17 00:00:00 2001 From: fly Date: Tue, 24 Mar 2020 04:41:14 +0000 Subject: [PATCH] Fixed rounding on refuel panel Signed-off-by: fly --- gui/dialogs/refuel.nas | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gui/dialogs/refuel.nas b/gui/dialogs/refuel.nas index 6d82dcc2..346be34f 100644 --- a/gui/dialogs/refuel.nas +++ b/gui/dialogs/refuel.nas @@ -523,31 +523,31 @@ var refuelClass = { var actual_fuel = pts.Consumables.Fuel.totalFuelLbs.getValue(); } - if (me._fuelPreselectAmount >= 10.0) { + if (me._fuelPreselectAmount >= 9.95) { me._FQI_pre.setText(sprintf("%2.1f", me._fuelPreselectAmount)); } else { me._FQI_pre.setText(sprintf("%2.2f", me._fuelPreselectAmount)); } - if (me._fuelLeftAmount >= 10.0) { + if (me._fuelLeftAmount >= 9.95) { me._FQI_L.setText(sprintf("%2.1f", me._fuelLeftAmount)); } else { me._FQI_L.setText(sprintf("%2.2f", me._fuelLeftAmount)); } - if (me._fuelCenterAmount >= 10.0) { + if (me._fuelCenterAmount >= 9.95) { me._FQI_C.setText(sprintf("%2.1f", me._fuelCenterAmount)); } else { me._FQI_C.setText(sprintf("%2.2f", me._fuelCenterAmount)); } - if (me._fuelRightAmount >= 10.0) { + if (me._fuelRightAmount >= 9.95) { me._FQI_R.setText(sprintf("%2.1f", me._fuelRightAmount)); } else { me._FQI_R.setText(sprintf("%2.2f", me._fuelRightAmount)); } - if (me._fuelTotalAmount >= 10.0) { + if (me._fuelTotalAmount >= 9.95) { me._FQI_actual.setText(sprintf("%2.1f", actual_fuel / 1000)); } else { me._FQI_actual.setText(sprintf("%2.2f", actual_fuel / 1000));