Fix when compiling without COOPNET

This commit is contained in:
MysterD 2023-04-29 18:15:41 -07:00
parent 8d1aaf628e
commit 5c515c340d
1 changed files with 2 additions and 0 deletions

View File

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