]> git.mxchange.org Git - flightgear.git/commitdiff
Add x-offset-m and y-offset-m to move-cloud command.
authorStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Sun, 24 Apr 2011 19:48:18 +0000 (20:48 +0100)
committerStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Sun, 24 Apr 2011 19:48:18 +0000 (20:48 +0100)
src/Environment/fgclouds.cxx

index 6bd1d5aa7caaeb1492ccd7ec5a3dff81d8315c47..c57c4ee1d55b2409a1803b05f13a111426696773 100644 (file)
@@ -408,7 +408,9 @@ bool FGClouds::get_3dClouds() const
         float lon = arg->getFloatValue("lon-deg", 0.0f);
         float lat = arg->getFloatValue("lat-deg", 0.0f);
         float alt = arg->getFloatValue("alt-ft",  0.0f);
+        float x   = arg->getFloatValue("x-offset-m",  0.0f);
+        float y   = arg->getFloatValue("y-offset-m",  0.0f);
 
    SGCloudField *layer = thesky->get_cloud_layer(l)->get_layer3D();
-        return layer->repositionCloud(i, lon, lat, alt);
+        return layer->repositionCloud(i, lon, lat, alt, x, y);
  }