mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Prevent joining a Discord lobby when you're already hosting
This commit is contained in:
parent
37fb101e05
commit
ad09ecd8ef
1 changed files with 6 additions and 2 deletions
|
|
@ -166,9 +166,13 @@ static bool ns_discord_initialize(enum NetworkType networkType) {
|
|||
}
|
||||
|
||||
// create lobby
|
||||
if (networkType == NT_SERVER) { discord_lobby_create(); }
|
||||
if (networkType == NT_SERVER) {
|
||||
discord_lobby_create();
|
||||
gActivityLock = true;
|
||||
} else {
|
||||
gActivityLock = false;
|
||||
}
|
||||
|
||||
gActivityLock = false;
|
||||
gDiscordInitialized = true;
|
||||
LOGFILE_INFO(LFT_DISCORD, "initialized");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue