1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Fix #9245: Headless servers apply Discord Rich Presence

This commit is contained in:
nhair
2019-06-19 17:02:57 -04:00
committed by Michael Steenbeek
parent bbd93f93cc
commit eb13c5a776
2 changed files with 5 additions and 1 deletions

View File

@@ -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.

View File

@@ -349,7 +349,10 @@ namespace OpenRCT2
_replayManager = CreateReplayManager();
_gameStateSnapshots = CreateGameStateSnapshots();
#ifdef __ENABLE_DISCORD__
_discordService = std::make_unique<DiscordService>();
if (!gOpenRCT2Headless)
{
_discordService = std::make_unique<DiscordService>();
}
#endif
try