From b68d5b107a1606356060796dfa97b489b9b3b856 Mon Sep 17 00:00:00 2001 From: Avery Date: Sat, 6 Mar 2021 21:07:55 -0800 Subject: [PATCH] make discord max party size equal to MAX_PLAYERS --- src/pc/network/discord/lobby.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pc/network/discord/lobby.c b/src/pc/network/discord/lobby.c index d556dad7..1d2561f3 100644 --- a/src/pc/network/discord/lobby.c +++ b/src/pc/network/discord/lobby.c @@ -18,7 +18,7 @@ static void on_lobby_create_callback(UNUSED void* data, enum EDiscordResult resu gCurActivity.type = DiscordActivityType_Playing; snprintf(gCurActivity.party.id, 128, "%lld", lobby->id); gCurActivity.party.size.current_size = 1; - gCurActivity.party.size.max_size = 2; + gCurActivity.party.size.max_size = MAX_PLAYERS; char secretJoin[128] = ""; snprintf(secretJoin, 128, "%lld:%s", lobby->id, lobby->secret); @@ -59,7 +59,7 @@ void discord_lobby_create(void) { struct IDiscordLobbyTransaction* txn = { 0 }; DISCORD_REQUIRE(app.lobbies->get_lobby_create_transaction(app.lobbies, &txn)); - txn->set_capacity(txn, 2); + txn->set_capacity(txn, MAX_PLAYERS); txn->set_type(txn, DiscordLobbyType_Public); //txn->set_metadata(txn, "a", "123"); @@ -94,4 +94,4 @@ struct IDiscordLobbyEvents* discord_lobby_initialize(void) { events.on_member_disconnect = on_member_disconnect; events.on_network_message = discord_network_on_message; return &events; -} \ No newline at end of file +}