Remove MathHelper.TwoPi (#46330)

Getting removed in Angle PR as the dotnet constants are better to use.
This commit is contained in:
metalgearsloth 2026-10-05 12:34:10 +00:00 • committed by GitHub
parent 5612c530d4
commit e22cf425cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -82,7 +82,7 @@ namespace Content.Server.Solar.EntitySystems
private void RandomizeSun()
{
// Initialize the sun to something random
TowardsSun = MathHelper.TwoPi * _robustRandom.NextDouble();
TowardsSun = Math.Tau * _robustRandom.NextDouble();
SunAngularVelocity = Angle.FromDegrees(0.1 + ((_robustRandom.NextDouble() - 0.5) * 0.05));
}