mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:42:55 +08:00
Reverse direction of bool to make mental parsing easier
This commit is contained in:
parent
0d1f273603
commit
ffb2e56a8d
@ -37,7 +37,7 @@ namespace osu.Game.Skinning
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Can serve as an optimisation if it is known ahead-of-time that this behaviour is allowed in a given use case.
|
/// Can serve as an optimisation if it is known ahead-of-time that this behaviour is allowed in a given use case.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected bool SkipPlayWhenZeroVolume => !Looping;
|
protected bool PlayWhenZeroVolume => Looping;
|
||||||
|
|
||||||
private readonly AudioContainer<DrawableSample> samplesContainer;
|
private readonly AudioContainer<DrawableSample> samplesContainer;
|
||||||
|
|
||||||
@ -98,7 +98,7 @@ namespace osu.Game.Skinning
|
|||||||
{
|
{
|
||||||
samplesContainer.ForEach(c =>
|
samplesContainer.ForEach(c =>
|
||||||
{
|
{
|
||||||
if (!SkipPlayWhenZeroVolume || c.AggregateVolume.Value > 0)
|
if (PlayWhenZeroVolume || c.AggregateVolume.Value > 0)
|
||||||
c.Play();
|
c.Play();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user