From f962e24feebbec883726e1c5ae8aebf67cdec9fe Mon Sep 17 00:00:00 2001 From: david Date: Sun, 13 Oct 2002 10:46:37 +0000 Subject: [PATCH] Use default visibility instead of modified sky visibility when 2D clouds are disabled. --- src/Main/main.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index dbc0cfd54..7d4525e5b 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -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;