Fix #27286: Headless servers do not write chat logs (#27287)

This commit is contained in:
Sjoerd de Bruin authored and GitHub committed 2026-10-14 18:00:42 +02:00
1 parent 44de4bf07e
commit 2107821cbe
3 files changed
+3 -3

No files matched your search

+1
View File
@@ -3,6 +3,7 @@
- Fix: [#16807] Error messages when trying to load regular JSON files as custom objects.
- Fix: [#24524] Some build types (like AppImage) lack information about their specific build.
- Fix: [#27264] Headless server crashes when loading a recolourable terrain surface.
- Fix: [#27286] Headless servers no longer write chat logs.
0.5.6 (2026-10-10)
------------------------------------------------------------------------
-3
View File
@@ -245,9 +245,6 @@ namespace OpenRCT2
_chatHistory.push_front(buffer);
_chatHistoryTime.push_front(Platform::GetTicks());
// Log to file (src only as logging does its own timestamp)
Network::AppendChatLog(s);
CreateAudioChannel(SoundId::newsItem, false, kMixerVolumeMax, 0.5f, 1.5f, true);
}
+2
View File
@@ -105,6 +105,8 @@ namespace OpenRCT2::Network
static void ChatAddHistory(const u8string& text)
{
AppendChatLog(text);
auto intent = Intent(INTENT_ACTION_CHAT_ADD_HISTORY);
intent.PutExtra(INTENT_EXTRA_MESSAGE, text);
ContextBroadcastIntent(&intent);