this simple patch will prevent to have fog in Clear cload layers.

This commit is contained in:
ehofman
2004-08-17 08:28:35 +00:00
parent 5414e94a1a
commit 7f0ebf8871

View File

@@ -266,7 +266,10 @@ void SGSky::modify_vis( float alt, float time_factor ) {
double ratio = 1.0;
if ( alt < asl - transition ) {
if ( cloud_layers[i]->getCoverage() == SGCloudLayer::SG_CLOUD_CLEAR ) {
// clear layer
ratio = 1.0;
} else if ( alt < asl - transition ) {
// below cloud layer
ratio = 1.0;
} else if ( alt < asl ) {