From 6cc9182b5c304485260ee2b68720c437598d1ac3 Mon Sep 17 00:00:00 2001 From: jtsshieh Date: Fri, 28 Jul 2017 08:59:39 -0400 Subject: Finished Minesweeper levels Check out my previous pul request for more things to do :-) --- TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs') 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(); -- cgit v1.2.3