From eb13c5a77693189ae2e1791e55571bfb18175b93 Mon Sep 17 00:00:00 2001 From: nhair Date: Wed, 19 Jun 2019 17:02:57 -0400 Subject: [PATCH] Fix #9245: Headless servers apply Discord Rich Presence --- distribution/changelog.txt | 1 + src/openrct2/Context.cpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index e151f91139..db1965cd0f 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -55,6 +55,7 @@ - Fix: [#9152] Spectators can modify ride colours. - Fix: [#9202] Artefacts show when changing ride type as client or using in-game console. - Fix: [#9240] Crash when passing directory instead of save file. +- Fix: [#9245] Headless servers apply Discord Rich Presence. - Fix: [#9293] Issue with the native load/save dialog. - Fix: [#9322] Peep crashing the game trying to find a ride to look at. - Fix: [#9324] Crash trying to remove invalid footpath scenery. diff --git a/src/openrct2/Context.cpp b/src/openrct2/Context.cpp index 7e1e6927b7..73f44ed6b9 100644 --- a/src/openrct2/Context.cpp +++ b/src/openrct2/Context.cpp @@ -349,7 +349,10 @@ namespace OpenRCT2 _replayManager = CreateReplayManager(); _gameStateSnapshots = CreateGameStateSnapshots(); #ifdef __ENABLE_DISCORD__ - _discordService = std::make_unique(); + if (!gOpenRCT2Headless) + { + _discordService = std::make_unique(); + } #endif try