Clear discord party id and secrets when not in-game

This commit is contained in:
MysterD 2023-04-15 20:18:20 -07:00
parent 4dfcfb3b68
commit 8477a285a9

View file

@ -92,6 +92,8 @@ void discord_activity_update(void) {
sCurActivity.party.size.current_size = network_player_connected_count();
sCurActivity.party.size.max_size = gServerSettings.maxPlayers;
} else {
snprintf(sCurActivity.party.id, 128, "%s", "");
snprintf(sCurActivity.secrets.join, 128, "%s", "");
sCurActivity.party.size.current_size = 1;
sCurActivity.party.size.max_size = 1;
}