Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
SheepYhangCN committed Sep 21, 2023
1 parent 3d12abc commit 8fef572
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public partial class main : Control
internal int h=0;
internal int m=0;
internal int s=0;
internal int ms=0;
internal double ms=0;
internal string ht="00";
internal string mt="00";
internal string st="00";
Expand Down Expand Up @@ -46,7 +46,7 @@ public override void _Process(double delta)
{
if (start)
{
ms+=(int)(delta*100);
ms+=delta*100;
}
if (GetNode<Button>("Reset").ButtonPressed)
{
Expand Down Expand Up @@ -78,11 +78,11 @@ public override void _Process(double delta)
}
if (ms<10)
{
mst="0"+ms.ToString();
mst="0"+((int)ms).ToString();
}
else
{
mst=ms.ToString();
mst=((int)ms).ToString();
}
if (s<10)
{
Expand Down

0 comments on commit 8fef572

Please sign in to comment.