From 45ae91f4bcb8044a0d3fd20d750484f7a0984e35 Mon Sep 17 00:00:00 2001 From: earthjasonlin Date: Sun, 8 May 2022 18:01:31 +0800 Subject: [PATCH] remove cleared alt when equals final alt --- TinyEurocat/TinyEurocat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TinyEurocat/TinyEurocat.cpp b/TinyEurocat/TinyEurocat.cpp index 63968f9..388e5e5 100644 --- a/TinyEurocat/TinyEurocat.cpp +++ b/TinyEurocat/TinyEurocat.cpp @@ -31,7 +31,7 @@ void TinyEurocat::OnGetTagItem( CFlightPlan FlightPlan, case TAG_ITEM_MET_ASS_ALT: maalt = FlightPlan.GetClearedAltitude() * 0.3048; maalt /= 100; - if (maalt > 0 && maalt != FlightPlan.GetFinalAltitude() * 0.3048 / 100 && maalt <= 149) + if (maalt > 0 && maalt != int(FlightPlan.GetFinalAltitude() * 0.3048) / 100 && maalt <= 149) { if (maalt <= 84) {