mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 13:13:22 +08:00
cleared comment
This commit is contained in:
parent
87b9ffced2
commit
4068be1293
@ -30,12 +30,11 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
|
|
||||||
public void ApplyToDrawableHitObjects(IEnumerable<DrawableHitObject> drawables)
|
public void ApplyToDrawableHitObjects(IEnumerable<DrawableHitObject> drawables)
|
||||||
{
|
{
|
||||||
//In the Tests for hidden the ReadFromConfig() void isn't called -> the following bindable is null
|
|
||||||
//It's too much work to get the Dependency Injection on the Tests to get the config for just this mod, so I just make sure
|
|
||||||
//the bindable isn't null
|
|
||||||
foreach (var d in drawables.OfType<DrawableOsuHitObject>())
|
foreach (var d in drawables.OfType<DrawableOsuHitObject>())
|
||||||
{
|
{
|
||||||
//Don't hide the first object ("drawables" are in a reverse order -> Last() )
|
//Don't hide the first object ("drawables" are in a reverse order -> Last() )
|
||||||
|
//If increaseFirstObjectVisibility is null then we're exectuing one of the tests for the hidden mod. Since it's too much
|
||||||
|
//work for just this interface to work on this tests (DI of the config..), I just make sure to not throw a null exception
|
||||||
if (d == drawables.Last() && (increaseFirstObjectVisibility == null || increaseFirstObjectVisibility)) continue;
|
if (d == drawables.Last() && (increaseFirstObjectVisibility == null || increaseFirstObjectVisibility)) continue;
|
||||||
d.ApplyCustomUpdateState += ApplyHiddenState;
|
d.ApplyCustomUpdateState += ApplyHiddenState;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user