From a2121b86df472176255368ebfa28a6e5bc1165b0 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Tue, 26 Apr 2011 19:45:40 +0200 Subject: [PATCH] Compile under MSVC --- simgear/scene/sky/cloudfield.cxx | 2 ++ simgear/scene/sky/cloudfield.hxx | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/simgear/scene/sky/cloudfield.cxx b/simgear/scene/sky/cloudfield.cxx index 2973e92e..fdde4adb 100644 --- a/simgear/scene/sky/cloudfield.cxx +++ b/simgear/scene/sky/cloudfield.cxx @@ -68,6 +68,8 @@ float SGCloudField::fieldSize = 50000.0f; double SGCloudField::timer_dt = 0.0; float SGCloudField::view_distance = 20000.0f; bool SGCloudField::wrap = true; +float SGCloudField::RADIUS_LEVEL_1 = 20000.0f; +float SGCloudField::RADIUS_LEVEL_2 = 5000.0f; SGVec3f SGCloudField::view_vec, SGCloudField::view_X, SGCloudField::view_Y; diff --git a/simgear/scene/sky/cloudfield.hxx b/simgear/scene/sky/cloudfield.hxx index 5b7bb6f7..ae7ce12a 100644 --- a/simgear/scene/sky/cloudfield.hxx +++ b/simgear/scene/sky/cloudfield.hxx @@ -73,8 +73,8 @@ private: float Rnd(float); // Radius of the LoD nodes for the dynamic quadtrees. - static const float RADIUS_LEVEL_1 = 20000.0f; - static const float RADIUS_LEVEL_2 = 5000.0f; + static float RADIUS_LEVEL_1; + static float RADIUS_LEVEL_2; // this is a relative position only, with that we can move all clouds at once SGVec3f relative_position; -- 2.39.5