From c17b3e1c6dfc3af0f63c7a971fb200c8aa70567b Mon Sep 17 00:00:00 2001 From: Jonathan Redpath Date: Tue, 3 May 2022 16:20:46 +0100 Subject: [PATCH] Fix other bug --- Models/Instruments/PFD/PFD.nas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Models/Instruments/PFD/PFD.nas b/Models/Instruments/PFD/PFD.nas index aeb5a6d1..82bdba9f 100644 --- a/Models/Instruments/PFD/PFD.nas +++ b/Models/Instruments/PFD/PFD.nas @@ -1242,7 +1242,7 @@ var canvas_pfd = { }), props.UpdateManager.FromHashList(["altitudePFD","altError"], 0.1, func(val) { if (!val.altError) { - obj.altOffset = val / 500 - int(val.altitudePFD / 500); + obj.altOffset = val.altitudePFD / 500 - int(val.altitudePFD / 500); obj.middleAltOffset = nil; if (obj.altOffset > 0.5) {