aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r--OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs b/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs
index e2b35c5..713060f 100644
--- a/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Sun/SunModule.cs
@@ -364,6 +364,13 @@ namespace OpenSim.Region.Environment.Modules
364 // Correct angular velocity to reflect the seasonal rotation 364 // Correct angular velocity to reflect the seasonal rotation
365 365
366 Magnitude = LLVector3.Mag(Position); 366 Magnitude = LLVector3.Mag(Position);
367 if (sunFixed)
368 {
369 Velocity.X = 0;
370 Velocity.Y = 0;
371 Velocity.Z = 0;
372 return;
373 }
367 374
368 Velocity = LLVector3.Rot(Velocity, Tilt)*((float)(1.0/Magnitude)); 375 Velocity = LLVector3.Rot(Velocity, Tilt)*((float)(1.0/Magnitude));
369 376
@@ -423,7 +430,7 @@ namespace OpenSim.Region.Environment.Modules
423 //if (useEstateTime) 430 //if (useEstateTime)
424 //LindenHourOffset = 0; 431 //LindenHourOffset = 0;
425 432
426 //ForceSunUpdateToAllClients(); 433 ForceSunUpdateToAllClients();
427 sunFixed = FixedTime; 434 sunFixed = FixedTime;
428 if (sunFixed) 435 if (sunFixed)
429 GenSunPos(); 436 GenSunPos();