From c45209e74a7aedb74c4fe3167f06f5f88846ab76 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Fri, 21 Jul 2017 18:13:10 -0400 Subject: [PATCH] A3XX: Fix FMGC decel bug --- Nasal/FMGC.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nasal/FMGC.nas b/Nasal/FMGC.nas index 83d2e729..25d407c7 100644 --- a/Nasal/FMGC.nas +++ b/Nasal/FMGC.nas @@ -224,7 +224,7 @@ var phasecheck = maketimer(0.2, func { if (getprop("/autopilot/route-manager/route/num") > 0 and getprop("/autopilot/route-manager/active") == 1 and getprop("/autopilot/route-manager/distance-remaining-nm") <= 15) { setprop("/FMGC/internal/decel", 1); - } else { + } else if (getprop("/FMGC/internal/decel") == 1 and phase != 5) { setprop("/FMGC/internal/decel", 0); }