1
0
Fork 0

Add x-offset-m and y-offset-m to move-cloud command.

This commit is contained in:
Stuart Buchanan 2011-04-24 20:48:18 +01:00
parent 94828f8acd
commit 65607d4a7b

View file

@ -408,7 +408,9 @@ bool FGClouds::get_3dClouds() const
float lon = arg->getFloatValue("lon-deg", 0.0f); float lon = arg->getFloatValue("lon-deg", 0.0f);
float lat = arg->getFloatValue("lat-deg", 0.0f); float lat = arg->getFloatValue("lat-deg", 0.0f);
float alt = arg->getFloatValue("alt-ft", 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(); 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);
} }