mirror of https://github.com/ppy/osu
Reverse direction of bool to make mental parsing easier
This commit is contained in:
parent
0d1f273603
commit
ffb2e56a8d
|
@ -37,7 +37,7 @@ public class SkinnableSound : SkinReloadableDrawable
|
|||
/// <remarks>
|
||||
/// Can serve as an optimisation if it is known ahead-of-time that this behaviour is allowed in a given use case.
|
||||
/// </remarks>
|
||||
protected bool SkipPlayWhenZeroVolume => !Looping;
|
||||
protected bool PlayWhenZeroVolume => Looping;
|
||||
|
||||
private readonly AudioContainer<DrawableSample> samplesContainer;
|
||||
|
||||
|
@ -98,7 +98,7 @@ private void play()
|
|||
{
|
||||
samplesContainer.ForEach(c =>
|
||||
{
|
||||
if (!SkipPlayWhenZeroVolume || c.AggregateVolume.Value > 0)
|
||||
if (PlayWhenZeroVolume || c.AggregateVolume.Value > 0)
|
||||
c.Play();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue