1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:43:05 +08:00

Reverse direction of bool to make mental parsing easier

This commit is contained in:
Dean Herbert 2020-08-08 23:25:52 +09:00
parent 0d1f273603
commit ffb2e56a8d

View File

@ -37,7 +37,7 @@ namespace osu.Game.Skinning
/// <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 @@ namespace osu.Game.Skinning
{
samplesContainer.ForEach(c =>
{
if (!SkipPlayWhenZeroVolume || c.AggregateVolume.Value > 0)
if (PlayWhenZeroVolume || c.AggregateVolume.Value > 0)
c.Play();
});
}