From 61d3c551fdd3e46bbe9334fc88a9e30fc30d9764 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sat, 2 May 2009 16:38:59 +0000 Subject: [PATCH] Thank you kindly, Thomax, for a patch that solves: ConfigurableWind module doesn't show any effect as time = DateTime.Now.TimeOfDay.Seconds / 86400; calculates 0. --- .../Region/CoreModules/World/Wind/Plugins/ConfigurableWind.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSim/Region/CoreModules/World/Wind/Plugins/ConfigurableWind.cs b/OpenSim/Region/CoreModules/World/Wind/Plugins/ConfigurableWind.cs index 0d4a17d8ab..41d207152e 100644 --- a/OpenSim/Region/CoreModules/World/Wind/Plugins/ConfigurableWind.cs +++ b/OpenSim/Region/CoreModules/World/Wind/Plugins/ConfigurableWind.cs @@ -112,7 +112,7 @@ namespace OpenSim.Region.CoreModules.World.Wind.Plugins // TODO: // * This should probably be based on in-world time. // * should probably move all these local variables to class members and constants - double time = DateTime.Now.TimeOfDay.Seconds / 86400; + double time = DateTime.Now.TimeOfDay.Seconds / 86400.0f; double theta = time * (2 * Math.PI) * m_rateChange;