From 418fbcd28347119c66d8beefda00c9d2220a434a Mon Sep 17 00:00:00 2001 From: Lance Ewing Date: Sat, 31 Dec 2022 00:23:58 +1300 Subject: [PATCH] Fixed bug where AGI Strings were not starting as empty. --- AGILE/GameState.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/AGILE/GameState.cs b/AGILE/GameState.cs index feea0e5..1adc172 100644 --- a/AGILE/GameState.cs +++ b/AGILE/GameState.cs @@ -215,6 +215,7 @@ public GameState(Game game) /// public void Init() { + ClearStrings(); ClearVars(); Vars[Defines.MACHINE_TYPE] = 0; // IBM PC Vars[Defines.MONITOR_TYPE] = 3; // EGA @@ -463,5 +464,16 @@ public void ClearControllers() Controllers[i] = false; } } + + /// + /// Clears all of the AGI Strings to be empty. + /// + public void ClearStrings() + { + for (int i = 0; i < Defines.NUMSTRINGS; i++) + { + Strings[i] = ""; + } + } } }