diff --git a/Nasal/FMGC/FMGC.nas b/Nasal/FMGC/FMGC.nas index f97f76bd..ab486b18 100644 --- a/Nasal/FMGC/FMGC.nas +++ b/Nasal/FMGC/FMGC.nas @@ -227,7 +227,7 @@ var updateFuel = func { if (dist < 0) { dist = 0; } - + wind = getprop("/FMGC/internal/trip-wind"); wind_value = getprop("/FMGC/internal/trip-wind-value"); if (find("HD", wind) != -1 or find("-", wind) != -1 or find("H", wind) != -1) { diff --git a/Nasal/MCDU/INITA.nas b/Nasal/MCDU/INITA.nas index 9140939f..7b8d721e 100644 --- a/Nasal/MCDU/INITA.nas +++ b/Nasal/MCDU/INITA.nas @@ -102,6 +102,10 @@ var initInputA = func(key, i) { if (crzs == 0 and temps >= 1 and temps <= 3 and temp != nil and getprop("/FMGC/internal/cruise-lvl-set")) { if (temp >= -99 and temp <= 99) { setprop("/FMGC/internal/cruise-temp", temp); + if (getprop("/FMGC/internal/block-confirmed")) { + setprop("/FMGC/internal/fuel-calculating", 0); + setprop("/FMGC/internal/fuel-calculating", 1); + } setprop("MCDU[" ~ i ~ "]/scratchpad", ""); } else { notAllowed(i); @@ -112,12 +116,12 @@ var initInputA = func(key, i) { setprop("/FMGC/internal/cruise-fl", crz); setprop("/FMGC/internal/cruise-fl-prog", crz); setprop("/FMGC/internal/cruise-lvl-set", 1); + setprop("/FMGC/internal/cruise-temp", temp); + setprop("/FMGC/internal/cruise-temp-set", 1); if (getprop("/FMGC/internal/block-confirmed")) { setprop("/FMGC/internal/fuel-calculating", 0); setprop("/FMGC/internal/fuel-calculating", 1); } - setprop("/FMGC/internal/cruise-temp", temp); - setprop("/FMGC/internal/cruise-temp-set", 1); setprop("MCDU[" ~ i ~ "]/scratchpad", ""); } else { notAllowed(i);