From 3d2d8f4936e93a0f3f236cc486c4e2216c239a28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Sun, 26 Jan 2025 10:25:32 +0100 Subject: [PATCH] Prevent our colour codes from making it to stdout --- src/gui/game/GameModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/game/GameModel.cpp b/src/gui/game/GameModel.cpp index 840170baf..847d9c93b 100644 --- a/src/gui/game/GameModel.cpp +++ b/src/gui/game/GameModel.cpp @@ -1164,7 +1164,7 @@ void GameModel::Log(String message, bool printToFile) consoleLog.pop_back(); notifyLogChanged(message); if (printToFile) - std::cout << message.ToUtf8() << std::endl; + std::cout << format::CleanString(message, false, true, false).ToUtf8() << std::endl; } std::deque GameModel::GetLog()