From b9da47c13d1bf582f5c2d2cf3d323134f5e7a178 Mon Sep 17 00:00:00 2001 From: toaster Date: Wed, 21 Sep 2022 19:22:33 +0100 Subject: [PATCH] discord.c compilation warning --- src/discord.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/discord.c b/src/discord.c index 6a87c6895..590446227 100644 --- a/src/discord.c +++ b/src/discord.c @@ -442,7 +442,9 @@ void DRPC_UpdatePresence(void) char detailstr[48+1]; +#ifdef USEMAPIMG char mapimg[8+1]; +#endif char mapname[5+21+21+2+1]; char charimg[4+SKINNAMESIZE+1]; @@ -545,7 +547,7 @@ void DRPC_UpdatePresence(void) if ((gamestate == GS_LEVEL || gamestate == GS_INTERMISSION) // Map info && !(demo.playback && demo.title)) { -#if 0 +#ifdef USEMAPIMG if ((gamemap >= 1 && gamemap <= 60) // supported race maps || (gamemap >= 136 && gamemap <= 164)) // supported battle maps {