From 0a48165d3a57cb8a1ce0f1bce267023a31cfd58a Mon Sep 17 00:00:00 2001 From: toaster Date: Sun, 18 Sep 2022 20:43:15 +0100 Subject: [PATCH] Disable hardcoded Discord API map icons for now, we can address this at release --- src/discord.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/discord.c b/src/discord.c index 32ca25f53..7c1b77a62 100644 --- a/src/discord.c +++ b/src/discord.c @@ -508,6 +508,7 @@ void DRPC_UpdatePresence(void) if ((gamestate == GS_LEVEL || gamestate == GS_INTERMISSION) // Map info && !(demo.playback && demo.title)) { +#if 0 if ((gamemap >= 1 && gamemap <= 60) // supported race maps || (gamemap >= 136 && gamemap <= 164)) // supported battle maps { @@ -516,7 +517,9 @@ void DRPC_UpdatePresence(void) strlwr(mapimg); discordPresence.largeImageKey = mapimg; // Map image } - else if (mapheaderinfo[gamemap-1]->menuflags & LF2_HIDEINMENU) + else +#endif + if (mapheaderinfo[gamemap-1]->menuflags & LF2_HIDEINMENU) { // Hell map, use the method that got you here :P discordPresence.largeImageKey = "miscdice";