From 35f973ece1d792cb7bbef4810f474ef0ef81ff01 Mon Sep 17 00:00:00 2001 From: fredb Date: Sun, 14 Dec 2008 18:48:00 +0000 Subject: [PATCH] Stuart : the 3D clouds now respect changes to the environment caused by updated METAR etc. It also increases the AlphaFunc as suggested by Tim. --- src/Environment/fgclouds.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Environment/fgclouds.cxx b/src/Environment/fgclouds.cxx index 0f414321a..9928b2751 100644 --- a/src/Environment/fgclouds.cxx +++ b/src/Environment/fgclouds.cxx @@ -217,7 +217,7 @@ void FGClouds::buildLayer(int iLayer, const string& name, double alt, double cov for(double py = 0.0; py < SGCloudField::fieldSize; py += grid_y_size) { double x = px + grid_x_rand * (sg_random() - 0.5) - (SGCloudField::fieldSize / 2.0); double y = py + grid_y_rand * (sg_random() - 0.5) - (SGCloudField::fieldSize / 2.0); - double z = alt + grid_z_rand * (sg_random() - 0.5); + double z = grid_z_rand * (sg_random() - 0.5); double choice = sg_random(); for(int i = 0; i < CloudVarietyCount ; i ++) { -- 2.39.5