1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 22:13:20 +08:00

Made Player.canPause one line

This commit is contained in:
DrabWeb 2017-01-31 21:02:58 -04:00
parent 2c12568a0d
commit c92418e000

View File

@ -55,13 +55,7 @@ namespace osu.Game.Screens.Play
private double pauseCooldown = 1000; private double pauseCooldown = 1000;
private double lastPauseActionTime = 0; private double lastPauseActionTime = 0;
private bool canPause private bool canPause => Time.Current >= (lastPauseActionTime + pauseCooldown);
{
get
{
return Time.Current >= (lastPauseActionTime + pauseCooldown);
}
}
private IAdjustableClock sourceClock; private IAdjustableClock sourceClock;