From 5c72e89e52b0a9bb38810a8b77988c5674c96e3e Mon Sep 17 00:00:00 2001 From: lempamo Date: Sun, 29 Oct 2017 13:25:07 -0400 Subject: end of internet ending complete --- Histacom2/AchievementBox.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Histacom2/AchievementBox.cs') diff --git a/Histacom2/AchievementBox.cs b/Histacom2/AchievementBox.cs index e6d714a..a65ef23 100644 --- a/Histacom2/AchievementBox.cs +++ b/Histacom2/AchievementBox.cs @@ -27,6 +27,10 @@ namespace Histacom2 BackgroundImage = Properties.Resources.EndingPiracy; stayOnScreen = true; break; + case 1: + BackgroundImage = Properties.Resources.EndingDestruction; + stayOnScreen = true; + break; case 20: BackgroundImage = Properties.Resources.AchievementMines; button1.Hide(); @@ -55,7 +59,8 @@ namespace Histacom2 Program.title.Show(); SaveSystem.CurrentSave = null; SaveSystem.currentTheme = null; - foreach (Form f in Application.OpenForms) if (!(f is TitleScreen) && !(f is AchievementBox)) f.Close(); + Application.OpenForms.Cast
().Where(x => !(x is TitleScreen | x is AchievementBox)).ToList().ForEach(x => x.Close()); + //foreach (Form f in Application.OpenForms) if (!(f is TitleScreen) && !(f is AchievementBox)) f.Close(); this.Close(); } } -- cgit v1.2.3