1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-13 15:27:30 +08:00

Merge pull request #8 from stanriders/speed-changes

Angular velocity bonus fixes
This commit is contained in:
KermitNuggies 2024-08-01 20:39:00 +12:00 committed by GitHub
commit 656e04bb5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,7 +63,9 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Evaluators
double adjustedDistanceScale = 1.0;
if (osuCurrObj.Angle.HasValue && osuPrevObj?.Angle != null && osuCurrObj.Angle != osuPrevObj.Angle)
if (osuCurrObj.Angle.HasValue &&
osuPrevObj?.Angle != null &&
Math.Abs(osuCurrObj.DeltaTime - osuPrevObj.DeltaTime) < 10)
{
double angleDifference = Math.Abs(osuCurrObj.Angle.Value - osuPrevObj.Angle.Value);
double angleDifferenceAdjusted = Math.Sin((angleDifference) / 2) * 180.0;