From 96751117013e938946ba37fe7a94c1851caae81e Mon Sep 17 00:00:00 2001 From: Jonathan Redpath Date: Sun, 13 Feb 2022 10:02:40 +0000 Subject: [PATCH] Bugfix decel --- Nasal/MCDU/F-PLN.nas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Nasal/MCDU/F-PLN.nas b/Nasal/MCDU/F-PLN.nas index c3c7df9a..149915cc 100644 --- a/Nasal/MCDU/F-PLN.nas +++ b/Nasal/MCDU/F-PLN.nas @@ -4,6 +4,7 @@ # Local vars var decelIndex = 0; var decelShow = 0; +var decelOffset = 0; var destName = nil; var getSubTextFunc = func(meRef) { @@ -559,8 +560,8 @@ var fplnPage = { # this one is only created once, and then updated - remember th decelIndex = getprop("/instrumentation/nd/symbols/decel/index"); decelShow = getprop("/instrumentation/nd/symbols/decel/show"); if (me.scroll < me.plan.getPlanSize()) { + decelOffset = 0; if (decelShow) { - var decelOffset = 0; if (me.scroll > decelIndex) { decelOffset = 1; }