* If you check fixed sun, in the estate tools 'terrain tab', the sun will fix in the location you set. (however the checkbox doesn't get re-populated properly yet, so it'll uncheck again even though the message got through to the server)

0.6.0-stable
Teravus Ovares 2008-05-30 23:53:20 +00:00
parent f433927722
commit 2d540514f4
1 changed files with 8 additions and 1 deletions

View File

@ -364,6 +364,13 @@ namespace OpenSim.Region.Environment.Modules
// Correct angular velocity to reflect the seasonal rotation // Correct angular velocity to reflect the seasonal rotation
Magnitude = LLVector3.Mag(Position); Magnitude = LLVector3.Mag(Position);
if (sunFixed)
{
Velocity.X = 0;
Velocity.Y = 0;
Velocity.Z = 0;
return;
}
Velocity = LLVector3.Rot(Velocity, Tilt)*((float)(1.0/Magnitude)); Velocity = LLVector3.Rot(Velocity, Tilt)*((float)(1.0/Magnitude));
@ -423,7 +430,7 @@ namespace OpenSim.Region.Environment.Modules
//if (useEstateTime) //if (useEstateTime)
//LindenHourOffset = 0; //LindenHourOffset = 0;
//ForceSunUpdateToAllClients(); ForceSunUpdateToAllClients();
sunFixed = FixedTime; sunFixed = FixedTime;
if (sunFixed) if (sunFixed)
GenSunPos(); GenSunPos();