From 5c515c340deddd5952365ed9d045e557b3fce156 Mon Sep 17 00:00:00 2001 From: MysterD Date: Sat, 29 Apr 2023 18:15:41 -0700 Subject: [PATCH] Fix when compiling without COOPNET --- src/pc/discord/discord_activity.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pc/discord/discord_activity.c b/src/pc/discord/discord_activity.c index c5a5e3d3..e25f9d89 100644 --- a/src/pc/discord/discord_activity.c +++ b/src/pc/discord/discord_activity.c @@ -138,12 +138,14 @@ void discord_activity_update(void) { void discord_activity_update_check(void) { if (sQueuedLobby > 0) { if (--sQueuedLobby == 0) { +#ifdef COOPNET gCoopNetDesiredLobby = sQueuedLobbyId; snprintf(gCoopNetPassword, 64, "%s", sQueuedLobbyPassword); network_reset_reconnect_and_rehost(); network_set_system(NS_COOPNET); network_init(NT_CLIENT, false); djui_panel_join_message_create(NULL); +#endif } }