speeup time update a bit ( this will be a conf option)

This commit is contained in:
UbitUmarov
2020-06-16 16:12:14 +01:00
parent 70f867a518
commit 46dce3cedb
2 changed files with 3 additions and 1 deletions

View File

@@ -992,11 +992,13 @@ namespace OpenSim.Framework
east_angle = Utils.TWO_PI + east_angle;
// this is just a case on one example daycyles, as wrong as any
/*
if (Utils.ApproxEqual(east_angle, Utils.PI, 1e-4f))
{
east_angle = 0;
sun_angle = Utils.PI - sun_angle;
}
*/
if (Math.Abs(sun_angle) < 1e-6)
sun_angle = 0;
else if (sun_angle < 0)