diff --git a/Models/Instruments/ND/canvas/framework/navdisplay.nas b/Models/Instruments/ND/canvas/framework/navdisplay.nas index 73c6eceb..374085b2 100644 --- a/Models/Instruments/ND/canvas/framework/navdisplay.nas +++ b/Models/Instruments/ND/canvas/framework/navdisplay.nas @@ -447,22 +447,18 @@ canvas.NavDisplay.update = func() # FIXME: This stuff is still too aircraft spec var vorheading = userHdgTru; var adfheading = userHdgMag; } - if (getprop("/instrumentation/nav[2]/heading-deg") != nil and me.get_switch("toggle_true_north") == 0) { - var nav0hdg = getprop("/instrumentation/nav[2]/heading-deg") - getprop("/orientation/heading-magnetic-deg"); - } else if (getprop("/instrumentation/nav[2]/heading-deg") != nil and me.get_switch("toggle_true_north") == 1) { + if (getprop("/instrumentation/nav[2]/heading-deg") != nil) { var nav0hdg = getprop("/instrumentation/nav[2]/heading-deg") - getprop("/orientation/heading-deg"); } else { var nav0hdg = 0; } - if (getprop("/instrumentation/nav[3]/heading-deg") != nil and me.get_switch("toggle_true_north") == 0) { - var nav1hdg = getprop("/instrumentation/nav[3]/heading-deg") - getprop("/orientation/heading-magnetic-deg"); - } else if (getprop("/instrumentation/nav[3]/heading-deg") != nil and me.get_switch("toggle_true_north") == 1) { + if (getprop("/instrumentation/nav[3]/heading-deg") != nil) { var nav1hdg = getprop("/instrumentation/nav[3]/heading-deg") - getprop("/orientation/heading-deg"); } else { var nav1hdg = 0; } - var adf0hdg=getprop("instrumentation/adf/indicated-bearing-deg"); - var adf1hdg=getprop("instrumentation/adf[1]/indicated-bearing-deg"); + var adf0hdg = getprop("instrumentation/adf/indicated-bearing-deg"); + var adf1hdg = getprop("instrumentation/adf[1]/indicated-bearing-deg"); if(!me.get_switch("toggle_centered")) { if(me.in_mode("toggle_display_mode", ["PLAN"])) diff --git a/revision.txt b/revision.txt index 9f85bfe1..1b8f5449 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -4615 \ No newline at end of file +4616 \ No newline at end of file