diff --git a/src/d_main.c b/src/d_main.c index 0404dc446be73a0b8498280169edb90e3d28136b..2c02565dc0c7e1b1eadadda2a4d2ef6af1550627 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -732,7 +732,10 @@ void D_SRB2Loop(void) #endif #ifdef HAVE_DISCORDRPC - Discord_RunCallbacks(); + if (! dedicated) + { + Discord_RunCallbacks(); + } #endif } } @@ -1600,7 +1603,10 @@ void D_SRB2Main(void) } #ifdef HAVE_DISCORDRPC - DRPC_Init(); + if (! dedicated) + { + DRPC_Init(); + } #endif } diff --git a/src/discord.c b/src/discord.c index 99cc0a3bd63016135b9c37546a203131dbfa675a..b3798e2912fd20bd1908050a1eb998de326dce55 100644 --- a/src/discord.c +++ b/src/discord.c @@ -482,6 +482,11 @@ void DRPC_UpdatePresence(void) DiscordRichPresence discordPresence; memset(&discordPresence, 0, sizeof(discordPresence)); + if (dedicated) + { + return; + } + if (!cv_discordrp.value) { // User doesn't want to show their game information, so update with empty presence.