From fe4a837d7f5d30fe4c75d8fa70cfa6acb1eb4c0f Mon Sep 17 00:00:00 2001 From: david Date: Fri, 17 May 2002 19:02:43 +0000 Subject: [PATCH] Modified to work with new cloud properties (sort-of). --- src/ATC/atis.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ATC/atis.cxx b/src/ATC/atis.cxx index eb2f39209..d2225410e 100644 --- a/src/ATC/atis.cxx +++ b/src/ATC/atis.cxx @@ -201,8 +201,11 @@ void FGATIS::UpdateTransmission() { transmission += " miles"; // Get the cloudbase - if(fgGetBool("/environment/clouds/status")) { - double cloudbase = fgGetDouble("/environment/clouds/altitude-ft"); + // FIXME: kludge for now + if (!strcmp(fgGetString("/environment/clouds/layer[0]/type"), + "clear")) { + double cloudbase = + fgGetDouble("/environment/clouds/layer[0]/elevation-ft"); // For some reason the altitude returned doesn't seem to correspond to the actual cloud altitude. char buf3[10]; // cout << "cloudbase = " << cloudbase << endl; -- 2.39.5