aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/ClientView.API.cs
diff options
context:
space:
mode:
authorMW2007-10-29 21:46:25 +0000
committerMW2007-10-29 21:46:25 +0000
commit3d8219f6c7faa256d6a13ab7925f75d83af95b78 (patch)
treeea507efa88aa7e526575469a6ce913fdc0c0358e /OpenSim/Region/ClientStack/ClientView.API.cs
parentFixed a bug in SQLAssetServer that only seemed to be a problem when running u... (diff)
downloadopensim-SC_OLD-3d8219f6c7faa256d6a13ab7925f75d83af95b78.zip
opensim-SC_OLD-3d8219f6c7faa256d6a13ab7925f75d83af95b78.tar.gz
opensim-SC_OLD-3d8219f6c7faa256d6a13ab7925f75d83af95b78.tar.bz2
opensim-SC_OLD-3d8219f6c7faa256d6a13ab7925f75d83af95b78.tar.xz
as per the "Filesystem cleanup for OpenSim repository" mailing list thread. Have flattened the OpenSim.Framework project/namespace. The problem is that the namespace is still wrong as its "OpenSim.Framework" while the directory is "OpenSim\Framework\General" , so we need to decide if we change the directory or correct the namespace.
Note this has lead to a big flat project, but I think a lot of the files we most likely don't even use any longer. And others belong in other projects/namespaces anyway.
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientView.API.cs')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.API.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.API.cs b/OpenSim/Region/ClientStack/ClientView.API.cs
index ba8bf02..24962f8 100644
--- a/OpenSim/Region/ClientStack/ClientView.API.cs
+++ b/OpenSim/Region/ClientStack/ClientView.API.cs
@@ -34,8 +34,8 @@ using libsecondlife;
34using libsecondlife.Packets; 34using libsecondlife.Packets;
35using OpenSim.Framework.Console; 35using OpenSim.Framework.Console;
36using OpenSim.Framework.Interfaces; 36using OpenSim.Framework.Interfaces;
37using OpenSim.Framework.Types; 37using OpenSim.Framework;
38using OpenSim.Framework.Utilities; 38using OpenSim.Framework;
39 39
40namespace OpenSim.Region.ClientStack 40namespace OpenSim.Region.ClientStack
41{ 41{
@@ -769,13 +769,17 @@ namespace OpenSim.Region.ClientStack
769 viewertime.TimeInfo.SecPerYear = 365000; 769 viewertime.TimeInfo.SecPerYear = 365000;
770 viewertime.TimeInfo.SunPhase = 1; 770 viewertime.TimeInfo.SunPhase = 1;
771 int sunPhase = (phase + 2) / 2; 771 int sunPhase = (phase + 2) / 2;
772 if ((sunPhase < 12) || (sunPhase > 36)) 772 if ((sunPhase < 6) || (sunPhase > 36))
773 { 773 {
774 viewertime.TimeInfo.SunDirection = new LLVector3(0f, 0.8f, -0.8f); 774 viewertime.TimeInfo.SunDirection = new LLVector3(0f, 0.8f, -0.8f);
775 //Console.WriteLine("sending night"); 775 //Console.WriteLine("sending night");
776 } 776 }
777 else 777 else
778 { 778 {
779 if (sunPhase < 12)
780 {
781 sunPhase = 12;
782 }
779 sunPhase = sunPhase - 12; 783 sunPhase = sunPhase - 12;
780 float yValue = 0.1f * (sunPhase); 784 float yValue = 0.1f * (sunPhase);
781 if (yValue > 1.2f) { yValue = yValue - 1.2f; } 785 if (yValue > 1.2f) { yValue = yValue - 1.2f; }