Skip to content

Commit

Permalink
fix - Fixed Pong and Snaker not resetting screen
Browse files Browse the repository at this point in the history
---

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
  • Loading branch information
AptiviCEO committed Sep 7, 2024
1 parent 16595c5 commit 4ce04dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4ce04dd

Please sign in to comment.