mirror of
https://github.com/osukey/osukey.git
synced 2025-05-31 18:37:32 +09:00
Don't allow counter became 0
This commit is contained in:
parent
2f852d705e
commit
b62f2437ac
@ -46,7 +46,7 @@ namespace osu.Game.Screens.Play.BreaksOverlay
|
|||||||
var currentTime = Clock.CurrentTime;
|
var currentTime = Clock.CurrentTime;
|
||||||
if (currentTime < endTime)
|
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)
|
if (currentSecond != previousSecond)
|
||||||
{
|
{
|
||||||
counter.Text = currentSecond.ToString();
|
counter.Text = currentSecond.ToString();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user