Use const whenever possible.

This commit is contained in:
Dean Herbert
2017-03-23 13:52:38 +09:00
parent 54e1b24fe9
commit 681ed38941
15 changed files with 69 additions and 32 deletions

View File

@ -42,10 +42,10 @@ namespace osu.Game.Screens.Play
public int RestartCount;
private readonly double pauseCooldown = 1000;
private const double pause_cooldown = 1000;
private double lastPauseActionTime;
private bool canPause => Time.Current >= lastPauseActionTime + pauseCooldown;
private bool canPause => Time.Current >= lastPauseActionTime + pause_cooldown;
private IAdjustableClock sourceClock;
private IFrameBasedClock interpolatedSourceClock;