mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 09:07:25 +08:00
Set TimeRate after mod application
This commit is contained in:
parent
18f2e92a48
commit
5781b45b39
@ -48,12 +48,11 @@ namespace osu.Game.Beatmaps
|
|||||||
{
|
{
|
||||||
var clock = new StopwatchClock();
|
var clock = new StopwatchClock();
|
||||||
mods.OfType<IApplicableToClock>().ForEach(m => m.ApplyToClock(clock));
|
mods.OfType<IApplicableToClock>().ForEach(m => m.ApplyToClock(clock));
|
||||||
|
TimeRate = clock.Rate;
|
||||||
|
|
||||||
foreach (var mod in mods.OfType<IApplicableToHitObject<T>>())
|
foreach (var mod in mods.OfType<IApplicableToHitObject<T>>())
|
||||||
foreach (var obj in Objects)
|
foreach (var obj in Objects)
|
||||||
mod.ApplyToHitObject(obj);
|
mod.ApplyToHitObject(obj);
|
||||||
|
|
||||||
TimeRate = clock.Rate;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void PreprocessHitObjects()
|
protected virtual void PreprocessHitObjects()
|
||||||
|
Loading…
Reference in New Issue
Block a user