Use default visibility instead of modified sky visibility when 2D
clouds are disabled.
This commit is contained in:
parent
b66a6c75b3
commit
f962e24fee
1 changed files with 5 additions and 1 deletions
|
@ -435,7 +435,11 @@ void fgRenderFrame() {
|
|||
static double last_visibility = -9999;
|
||||
|
||||
// update fog params
|
||||
double actual_visibility = thesky->get_visibility();
|
||||
double actual_visibility;
|
||||
if (fgGetBool("/environment/clouds/status"))
|
||||
actual_visibility = thesky->get_visibility();
|
||||
else
|
||||
actual_visibility = fgGetDouble("/environment/visibility-m");
|
||||
if ( actual_visibility != last_visibility ) {
|
||||
last_visibility = actual_visibility;
|
||||
|
||||
|
|
Loading…
Reference in a new issue