1
0
Fork 0

Use default visibility instead of modified sky visibility when 2D

clouds are disabled.
This commit is contained in:
david 2002-10-13 10:46:37 +00:00
parent b66a6c75b3
commit f962e24fee

View file

@ -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;