Modified to work with new cloud properties (sort-of).
This commit is contained in:
parent
b091433cf6
commit
fe4a837d7f
1 changed files with 5 additions and 2 deletions
|
@ -201,8 +201,11 @@ void FGATIS::UpdateTransmission() {
|
||||||
transmission += " miles";
|
transmission += " miles";
|
||||||
|
|
||||||
// Get the cloudbase
|
// Get the cloudbase
|
||||||
if(fgGetBool("/environment/clouds/status")) {
|
// FIXME: kludge for now
|
||||||
double cloudbase = fgGetDouble("/environment/clouds/altitude-ft");
|
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.
|
// For some reason the altitude returned doesn't seem to correspond to the actual cloud altitude.
|
||||||
char buf3[10];
|
char buf3[10];
|
||||||
// cout << "cloudbase = " << cloudbase << endl;
|
// cout << "cloudbase = " << cloudbase << endl;
|
||||||
|
|
Loading…
Add table
Reference in a new issue