]> git.mxchange.org Git - flightgear.git/commitdiff
Modified to work with new cloud properties (sort-of).
authordavid <david>
Fri, 17 May 2002 19:02:43 +0000 (19:02 +0000)
committerdavid <david>
Fri, 17 May 2002 19:02:43 +0000 (19:02 +0000)
src/ATC/atis.cxx

index eb2f392097037b49b20095a1a2a09b629631a2d2..d2225410e4f1e04b4a7e350a5f98b830cfa2c117 100644 (file)
@@ -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;