Change Opacity function to take in absolute map time rather than relative time

This commit is contained in:
MBmasher
2021-11-30 12:58:49 +11:00
parent 383bf7cdfc
commit b0dc8bf061
2 changed files with 5 additions and 2 deletions

View File

@ -71,8 +71,11 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Preprocessing
setDistances(clockRate);
}
public double Opacity(double ms, bool hidden)
public double Opacity(double T, bool hidden)
{
double ms = (BaseObject.StartTime - T) / clockRate;
if (ms < 0)
return 0.0;
double preemptTime = BaseObject.TimePreempt / clockRate;
double fadeInTime = BaseObject.TimeFadeIn / clockRate;