From 07e48565ed63a581f5882e466133aa05e29b4d4f Mon Sep 17 00:00:00 2001 From: AllyTally Date: Mon, 27 Mar 2023 17:53:13 -0300 Subject: [PATCH] Reset textbox colors properly --- desktop_version/src/Script.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/desktop_version/src/Script.cpp b/desktop_version/src/Script.cpp index 84dc301e..fdc8e6dc 100644 --- a/desktop_version/src/Script.cpp +++ b/desktop_version/src/Script.cpp @@ -2562,6 +2562,19 @@ void scriptclass::startgamemode(const enum StartMode mode) } } + /* Containers which need to be reset before gameplay starts + * ex. before custom levels get loaded */ + + switch (mode) + { + case Start_EDITORPLAYTESTING: + break; + default: + textbox_colours.clear(); + add_default_colours(); + break; + } + hardreset(); if (mode == Start_EDITOR)