mirror of
https://github.com/ppy/osu.git
synced 2026-05-27 05:09:58 +08:00
Don't allow counter became 0
This commit is contained in:
@@ -46,7 +46,7 @@ namespace osu.Game.Screens.Play.BreaksOverlay
|
||||
var currentTime = Clock.CurrentTime;
|
||||
if (currentTime < endTime)
|
||||
{
|
||||
int currentSecond = (int)Math.Floor((endTime - Clock.CurrentTime) / 1000.0);
|
||||
int currentSecond = (int)Math.Ceiling((endTime - Clock.CurrentTime) / 1000.0);
|
||||
if (currentSecond != previousSecond)
|
||||
{
|
||||
counter.Text = currentSecond.ToString();
|
||||
|
||||
Reference in New Issue
Block a user