From bbc83f721c8f8099cea9fbc14fa6de984cfbd1e1 Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 25 Jun 2004 10:59:59 +0000 Subject: [PATCH] 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. --- simgear/scene/sky/cloud.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/scene/sky/cloud.cxx b/simgear/scene/sky/cloud.cxx index 48818bcf..9945ecaf 100644 --- a/simgear/scene/sky/cloud.cxx +++ b/simgear/scene/sky/cloud.cxx @@ -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; } -- 2.39.5