projects
/
simgear.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9372975
)
Fix wrong movement of 2d cloud layers on N/S courses
author
Torsten Dreyer
<Torsten@t3r.de>
Sun, 19 Sep 2010 08:53:25 +0000
(10:53 +0200)
committer
Torsten Dreyer
<Torsten@t3r.de>
Sun, 19 Sep 2010 08:53:25 +0000
(10:53 +0200)
simgear/scene/sky/cloud.cxx
patch
|
blob
|
history
diff --git
a/simgear/scene/sky/cloud.cxx
b/simgear/scene/sky/cloud.cxx
index 5d8b09ffb799e14997ebe838dadc46e63ffa72e6..0c5b6e21acf7d8f3f03267660df7b2deca8a5297 100644
(file)
--- a/
simgear/scene/sky/cloud.cxx
+++ b/
simgear/scene/sky/cloud.cxx
@@
-756,7
+756,7
@@
bool SGCloudLayer::reposition( const SGVec3f& p, const SGVec3f& up, double lon,
double ax = 0.0, ay = 0.0, bx = 0.0, by = 0.0;
if (dist > 0.0) {
- ax = cos(course) * dist;
+ ax =
-
cos(course) * dist;
ay = sin(course) * dist;
}
@@
-769,6
+769,7
@@
bool SGCloudLayer::reposition( const SGVec3f& p, const SGVec3f& up, double lon,
double xoff = (ax + bx) / (2 * scale);
double yoff = (ay + by) / (2 * scale);
+
// const float layer_scale = layer_span / scale;
// cout << "xoff = " << xoff << ", yoff = " << yoff << endl;