diff options
| author | lempamo <[email protected]> | 2017-08-11 14:52:30 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-08-11 14:52:30 -0400 |
| commit | a5709d1c3a088f46b80d7839623735d0fa649074 (patch) | |
| tree | 089e9c33198aaa1251bae44cb63e12b9d12ed415 /TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs | |
| parent | a2aef11bd4ca2553bad5f5bdab7ae22dad6247ac (diff) | |
| download | histacom2-a5709d1c3a088f46b80d7839623735d0fa649074.tar.gz histacom2-a5709d1c3a088f46b80d7839623735d0fa649074.tar.bz2 histacom2-a5709d1c3a088f46b80d7839623735d0fa649074.zip | |
improved 12padams slightly
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs index 293d4bb..86e6334 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs @@ -23,18 +23,17 @@ namespace TimeHACK.OS.Win95.Win95Apps.Story // This is the very first story script! public static void StartObjective() { - System.Windows.Forms.Timer tmr = new System.Windows.Forms.Timer(); - tmr.Interval = 1; - tmr.Tick += new EventHandler(CheckIfSoundFinished); + if (!ended) { + System.Windows.Forms.Timer tmr = new System.Windows.Forms.Timer(); + tmr.Interval = 1; + tmr.Tick += new EventHandler(CheckIfSoundFinished); - if (devMode == true) - { - ContinueObjective(); - } - else - { - soundThread.Start(); - tmr.Start(); + if (devMode == true) ContinueObjective(); + else + { + soundThread.Start(); + tmr.Start(); + } } } @@ -71,6 +70,7 @@ namespace TimeHACK.OS.Win95.Win95Apps.Story await Task.Delay(36000); app.Close(); + ended = true; } public static void CheckIfSoundFinished(Object sender, EventArgs e) |
