diff options
| author | lempamo <[email protected]> | 2017-07-28 08:04:39 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-07-28 08:04:39 -0500 |
| commit | a2e42d26db125d4dc4718adc015c223e5534b806 (patch) | |
| tree | a6cabfc1e731babf2113ed5177596eef3b7ece39 /TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/Game.cs | |
| parent | 30e21503910c33e255ceef657fbaa3ce1b7ebba2 (diff) | |
| parent | 6cc9182b5c304485260ee2b68720c437598d1ac3 (diff) | |
| download | histacom2-a2e42d26db125d4dc4718adc015c223e5534b806.tar.gz histacom2-a2e42d26db125d4dc4718adc015c223e5534b806.tar.bz2 histacom2-a2e42d26db125d4dc4718adc015c223e5534b806.zip | |
Merge pull request #139 from jtsshieh/master
Finished Minesweeper levels
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(); |
