From 4ce04dd50b188ba39816bebab31187cd2e6c8a95 Mon Sep 17 00:00:00 2001 From: Aptivi Date: Sat, 7 Sep 2024 17:10:58 +0300 Subject: [PATCH] fix - Fixed Pong and Snaker not resetting screen --- Pong and Snaker should unset the current screen when they're finished so that other screens can be rendered. --- Type: fix Breaking: False Doc Required: False Backport Required: False Part: 1/1 --- .../Nitrocid.Extras.Amusements/Amusements/Games/Pong.cs | 3 ++- .../Nitrocid.Extras.Amusements/Amusements/Games/Snaker.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Pong.cs b/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Pong.cs index 9696ad694..6475eb84b 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Pong.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Pong.cs @@ -346,7 +346,8 @@ public static void InitializePong() // Show the stage for few seconds before wiping Thread.Sleep(5000); - // Reset console display + // Reset console display and screen + ScreenTools.UnsetCurrent(screen); ColorTools.LoadBack(); ConsoleResizeHandler.WasResized(); } diff --git a/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Snaker.cs b/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Snaker.cs index 877c5cf3e..af3d8aebc 100644 --- a/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Snaker.cs +++ b/public/Nitrocid.Addons/Nitrocid.Extras.Amusements/Amusements/Games/Snaker.cs @@ -385,7 +385,8 @@ public static void InitializeSnaker(bool Simulation) else Thread.Sleep(AmusementsInit.SaversConfig.SnakerStageDelay); - // Reset mass and console display + // Reset mass and console display and screen + ScreenTools.UnsetCurrent(screen); SnakeMassPositions.Clear(); ColorTools.LoadBack(); ConsoleResizeHandler.WasResized();