]> git.mxchange.org Git - flightgear.git/commitdiff
Stuart :
authorfredb <fredb>
Sun, 14 Dec 2008 18:48:00 +0000 (18:48 +0000)
committerfredb <fredb>
Sun, 14 Dec 2008 18:48:00 +0000 (18:48 +0000)
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

index 0f414321a9ac4ab76207a5ba3b0d29f86721cf5b..9928b27514d63553287ed6029af4a60c08b7b979 100644 (file)
@@ -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 ++) {