diff options
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs index e6f31dd..8adee8e 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs @@ -18,7 +18,7 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper private Square[,] _squares; private Timer _timer; private int _width; - + public bool ftime = true; public int Time; public Game(Panel panel, int width, int height, int mines) @@ -31,6 +31,11 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper private void Dismantle(object sender, EventArgs e) { + if(ftime == true) + { + ftime = false; + OnTick(); + } Square s = (Square)sender; if (s.Dismantled) { @@ -146,7 +151,6 @@ namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper Time = 0; _dismantledMines = 0; _incorrectdismantledMines = 0; - OnTick(); Panel.Enabled = true; Panel.Controls.Clear(); |
