Frederic Bouvier:

this patch correct the cloud repositionning that
made them going against the wind. Now the clouds
and the windsock show the same direction.
This commit is contained in:
ehofman
2004-06-25 10:59:59 +00:00
parent 01f4541331
commit bbc83f721c

View File

@@ -725,8 +725,8 @@ bool SGCloudLayer::reposition( sgVec3 p, sgVec3 up, double lon, double lat,
}
if (sp_dist > 0) {
bx = cos(-direction * SGD_DEGREES_TO_RADIANS) * sp_dist;
by = sin(-direction * SGD_DEGREES_TO_RADIANS) * sp_dist;
bx = cos((180.0-direction) * SGD_DEGREES_TO_RADIANS) * sp_dist;
by = sin((180.0-direction) * SGD_DEGREES_TO_RADIANS) * sp_dist;
}