Fix when compiling without COOPNET

This commit is contained in:
MysterD 2023-04-29 18:15:41 -07:00
parent bc0a7f948f
commit db939f8efd

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