From 499786bb6ec1c9ae61615775bd867c87c1908bcc Mon Sep 17 00:00:00 2001 From: Matthew Maring <56924612+hayden2000@users.noreply.github.com> Date: Sat, 27 Jun 2020 07:11:53 -0400 Subject: [PATCH] Fix taxi fuel bug --- Nasal/MCDU/INITB.nas | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Nasal/MCDU/INITB.nas b/Nasal/MCDU/INITB.nas index b60063ab..5e44e127 100644 --- a/Nasal/MCDU/INITB.nas +++ b/Nasal/MCDU/INITB.nas @@ -20,9 +20,12 @@ var initInputB = func(key, i) { if (num(scratchpad) != nil and scratchpad >= 0.0 and scratchpad <= 9.9) { setprop("/FMGC/internal/taxi-fuel", scratchpad); setprop("/FMGC/internal/taxi-fuel-set", 1); - setprop("/FMGC/internal/fuel-calculating", 1); + if (getprop("/FMGC/internal/block-confirmed")) { + setprop("/FMGC/internal/fuel-calculating", 1); + } else if (getprop("/FMGC/internal/fuel-request-set")) { + setprop("/FMGC/internal/block-calculating", 1); + } mcdu_scratchpad.scratchpads[i].empty(); - fmgc.updateFuel(); } else { mcdu_message(i, "NOT ALLOWED"); }